JSPM

@narkdown/notion-utils

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q30023F
  • License MIT

Utility functions for Notion

Package Exports

  • @narkdown/notion-utils
  • @narkdown/notion-utils/dist/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@narkdown/notion-utils) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

@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