UNPKG

tfd-test

Version:

Developer task manager. No more TODO or FIXME comments. A simple wrapper function to create tasks.

9 lines (6 loc) 242 B
const { join } = require('path'); const { existsSync, writeFileSync } = require('fs'); const tasksFilePath = join(process.cwd(), 'tasks.json'); if (!existsSync(tasksFilePath)) { writeFileSync(tasksFilePath, JSON.stringify([])); }