Imported node-fetch into joplin api wrapper module

This commit is contained in:
Ian Cooperman 2022-08-01 15:01:37 -07:00
parent 4c41583ba8
commit 49f49112b3
2 changed files with 9 additions and 0 deletions

8
joplin.js Normal file
View File

@ -0,0 +1,8 @@
import fetch from 'node-fetch';
async function main() {
const res = await fetch("https://example.com");
console.log(res.body);
}
const res = main();

View File

@ -1,4 +1,5 @@
{ {
"type": "module",
"dependencies": { "dependencies": {
"@notionhq/client": "^2.1.1", "@notionhq/client": "^2.1.1",
"dotenv": "^16.0.1", "dotenv": "^16.0.1",