/notion-gen

Primary LanguageJavaScriptMIT LicenseMIT

Notion Gen

Version

Screenshot 2021-10-02 at 11 47 35 AM

Notion CLI utility for generate pages using notion api.

What problem does this solve ?

Last year I started bullet journaling in notion. So if I want to plan something for a week or month then I need to create pages with date name and set each date manually in the Date column. This was a repetitive and boring task for me hence I create this CLI utility.

Installation

npm install @burhanrashid52/notion-gen@0.0.2

Commands

Setup

First, use init command to setup your notion secret token. It's save token locally.

notion-gen init

Generate Dates

notion-gen generate-dates <startDate> <endDate>

To generate dates we need to provide dates in yyyy-mm-dd format. After running this command it will ask for databaseid and date column name.

notion_gen_demo.mp4

Contribute

If you have a use-case which you want to add to this utility then please create the discussion, and then you can create a PR for it.

Questions?🤔

Hit me on twitter Twitter Medium Facebook

MIT License

Copyright (c) 2021 Burhanuddin Rashid

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.