feat: initial commit

Signed-off-by: Vojtěch Mareš <vojtech@mares.cz>
This commit is contained in:
Vojtěch Mareš 2025-05-07 17:13:17 +02:00
commit 0a9d12b777
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D
5 changed files with 61 additions and 0 deletions

2
.env.example Normal file
View file

@ -0,0 +1,2 @@
NOTION_KEY=xxx
DATABASE_ID=yyy

2
.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
node_modules
.env

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"name": "notion-database",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"run": "node src/main.mjs",
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"packageManager": "pnpm@10.10.0",
"devDependencies": {
"dotenv": "^16.5.0"
},
"dependencies": {
"@notionhq/client": "^3.0.0"
}
}

33
pnpm-lock.yaml generated Normal file
View file

@ -0,0 +1,33 @@
lockfileVersion: '9.0'
settings:
autoInstallPeers: true
excludeLinksFromLockfile: false
importers:
.:
dependencies:
'@notionhq/client':
specifier: ^3.0.0
version: 3.0.0
devDependencies:
dotenv:
specifier: ^16.5.0
version: 16.5.0
packages:
'@notionhq/client@3.0.0':
resolution: {integrity: sha512-TlWxZT/rsrjGWJOrnVuiLAlWNPXDumHyRMcw81bJcy2RupSyfjjUCYRELDEyZog48sjVK69/hHLIAwOF3C+ECQ==}
engines: {node: '>=18'}
dotenv@16.5.0:
resolution: {integrity: sha512-m/C+AwOAr9/W1UOIZUo232ejMNnJAJtYQjUbHoNTBNTJSvqzzDh7vnrei3o3r3m9blf6ZoDkvcw0VmozNRFJxg==}
engines: {node: '>=12'}
snapshots:
'@notionhq/client@3.0.0': {}
dotenv@16.5.0: {}

4
src/main.mjs Normal file
View file

@ -0,0 +1,4 @@
import { Client } from "@notionhq/client";
import dotenv from "dotenv";
dotenv.config();