UNPKG

notion-upload-js

Version:

A lightweight package to upload files—both local and remote—to Notion via the Notion API. Supports internal (local) and external (URL-based) file uploads.

15 lines 378 B
import { notionUpload} from './main.js'; import { bulkUpload} from './bulk.js'; export { notionUpload, bulkUpload } /** * When you pass a JSON file to the bulkUpload function, it should be in the following format: * { "files": [ {"path": "file/path", "name": "name.txt"}, {"path": "file/path2", "name": "name2.txt"} ] } */