Created
January 23, 2019 06:46
-
-
Save korzio/c36a4e56ac2be828be4c321491f9d8c2 to your computer and use it in GitHub Desktop.
medium-basic-first.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const { description, name, version } = require('./package.json') | |
const VERSION_MESSAGE = `${name} ${version}` | |
const HELP_MESSAGE = `${VERSION_MESSAGE} | |
${description} | |
Usage: | |
--help Help documentation | |
--version Installed package version` | |
console.log(HELP_MESSAGE) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment