Package Exports
- generate-pincode
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (generate-pincode) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Node.js module/CLI app for generating pincodes.
##Installation
$ npm install generate-pincode
Install it globally to use the CLI version
$ npm install generate-pincode -g
##Usage - module
var gpc = require('generate-pincode')
;
gpc(4, function(err, pincode){
if(err){
console.error(err);
} else {
console.log(pincode);
}
});
##Usage - cli
If not supplied with a length it returns a four digit pincode.
$ generate-pincode
Optionally
$ generate-pincode <length>
To see version number
$ generate-pincode -v
To see help
$ generate-pincode -h