@narkdown/notion-utils
v0.1.0
Published
Utility functions for Notion
Downloads
9
Readme
@narkdown/notion-utils
Utility functions for Notion
Install
$ npm install @narkdown/notion-utils
Usage
const {extractIdFromUrl} = require('@narkdown/notion-utils');
const pageId = extractIdFromUrl(
'https://www.notion.so/username/et-tempore-iste-36d1060897c442399eb86e1f98dd31d4',
);
console.log(pageId); // 36d1060897c442399eb86e1f98dd31d4
APIs
extractIdFromUrl(url)
Extract page or database id from url
url
Type: string