@narkdown/notion-utils
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

@narkdown/notion-utils

Utility functions for Notion

codecov XO code style Version: v0.1.0 license: MIT

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

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i @narkdown/notion-utils

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

7.66 kB

Total Files

12

Last publish

Collaborators

  • younho9