Skip to content

read a usage file to process.stdout, and quit with some exit code

License

Notifications You must be signed in to change notification settings

elsehow/usage-and-quit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

usage-and-quit

read a usage file to process.stdout, and quit with some exit code

example

var join = require('path').join
var pathTo = f => join(__dirname, f)
var usageFile = pathTo('usage.txt')
var usage = require('..')
usage(usageFile)

install

npm install usage-and-quit

api

usage(pathToUsageFile, [exitCode])

will print pathToUsageFile to stdout.

exitCode is 1 by default.

license

BSD

About

read a usage file to process.stdout, and quit with some exit code

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published