UNPKG

e-lado

Version:

[![CircleCI](https://circleci.com/gh/sharetribe/sharetribe/tree/master.svg?style=svg)](https://circleci.com/gh/sharetribe/sharetribe/tree/master) [![Dependency Status](https://gemnasium.com/sharetribe/sharetribe.png)](https://gemnasium.com/sharetribe/shar

20 lines (16 loc) 424 B
#!/usr/bin/env node var errno = require('./') , arg = process.argv[2] , data, code if (arg === undefined) return console.log(JSON.stringify(errno.code, null, 2)) if ((code = +arg) == arg) data = errno.errno[code] else data = errno.code[arg] || errno.code[arg.toUpperCase()] if (data) console.log(JSON.stringify(data, null, 2)) else { console.error('No such errno/code: "' + arg + '"') process.exit(1) }