@keybittech/awayto
Version:
Deploy a fully-featured application in about 10 minutes that is primed for quick development. Do business, impress a client with a quick demo, finish your poc with time to spare; all easily achievable with Awayto.
24 lines (14 loc) • 538 B
JavaScript
import { ask } from './tool.mjs';
import fs from 'fs';
import path from 'path';
const name = await ask('Name?');
const description = await ask('Description?');
const __dirname = path.dirname(fs.realpathSync(new URL(import.meta.url)));
const content = JSON.stringify({ name, description });
const file = fs.writeFileSync(path.resolve(__dirname, "./something.json"), content);
console.log('yep cool');
process.exit();
// console.log(name);
// console.log(description);
// process.send(name);
// process.exit