#!/usr/bin/env node var errno = require('./') , arg = process.argv[2] , data, code if (arg === undefined) { console.log(JSON.stringify(errno.code, null, 2)) process.exit(0) } 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) }
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
.travis.yml | File | 77 B | 0644 |
|
README.md | File | 4.59 KB | 0644 |
|
build.js | File | 1.11 KB | 0755 |
|
cli.js | File | 440 B | 0755 |
|
custom.js | File | 1.62 KB | 0644 |
|
errno.js | File | 5.48 KB | 0644 |
|
package.json | File | 1.5 KB | 0644 |
|
test.js | File | 2.58 KB | 0644 |
|