notion-toolkit

0.0.0-alpha.1 • Public • Published

Notion Toolkit

Some handy tools for working with Notion including both a command-line utility and a NodeJS API.

Command Line Usage

Authentication

The command-line uses a token, which you can set with the NOTION_TOKEN environment variable or using the --token (-t for short) flag.

$ notion-toolkit help

Help utility surfacing documentation and options.

To dig into a particular command/namespace, you can do that with $ notion-toolkit help [command].

$ notion-toolkit database prune-empty [databaseId]

A utility for cleaning empty records from a database.

$ notion-toolkit database new-page-from-template [databaseId] [templateId]

A utility for creating new records from a template in a database.

Use-cases

  • Creating pages within databases from a template.
  • Removing empty pages from databases.

Readme

Keywords

Package Sidebar

Install

npm i notion-toolkit

Weekly Downloads

1

Version

0.0.0-alpha.1

License

ISC

Unpacked Size

23.8 kB

Total Files

23

Last publish

Collaborators

  • alexwilson