UNPKG

notion-ts-client

Version:

Generates an easy to use and fully typed API to access and modify the data in Notion Databases

7 lines (5 loc) 206 B
import * as fs from 'fs' export function saveContentToFile(content: string, path: string, fileName: string) { fs.mkdirSync(path, { recursive: true }) fs.writeFileSync(`${path}/${fileName}`, content) }