Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- index.js:
- #!/usr/bin/env node
- const inquirer = require("inquirer");
- const chalk = require("chalk");
- const figlet = require("figlet");
- // const shell = require("shelljs");
- const init = () => {
- console.log(
- chalk.green(
- figlet.textSync("Node JS CLI", {
- font: "Ghost",
- horizontalLayout: "default",
- verticalLayout: "default"
- })
- )
- );
- };
- const run = async () => {
- init();
- };
- run();
- package.json:
- {
- "name": "dayzwebservice",
- "version": "1.0.0",
- "description": "",
- "main": "index.js",
- "scripts": {
- "test": "echo \"Error: no test specified\" && exit 1",
- "start": "node index.js"
- },
- "author": "",
- "license": "ISC",
- "dependencies": {
- "chalk": "^4.1.0",
- "figlet": "^1.5.0",
- "inquirer": "^7.3.3",
- "shelljs": "^0.8.4"
- },
- "pkg": {
- "scripts": [],
- "assets": [
- "node_modules/figlet/fonts/Ghost.flf"
- ],
- "targets": [
- "node12-linux-x64",
- "node12-macos-x64",
- "node12-win-x64"
- ]
- },
- "bin": "index.js"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement