1.0.1 • Published 9 years ago

syserrno v1.0.1

Weekly downloads
3
License
BSD
Repository
github
Last release
9 years ago

node-errno

Build Status

An easier way to track errno's

This is mainly for use with node-launchctl

Install

$ npm install syserrno

API

#strerror(errno)

Params:

  • {Number} errno The error number

Example:

var errno = require('errno')
console.log(errno.strerror(148))
// outputs "Invalid domain"

#errorForCode(code)

Params:

  • {String} code The error code

Example:

var errno = require('errno')
var err = errno.errorForCode('EIVALDO')
console.log(err)

Returns: An Error object containing

{
  code: 'EIVALDO',
  msg: 'Invalid domain',
  errno: 148
}

#errorForErrno(errno)

Params:

  • {Number} errno The error number
1.0.1

9 years ago

1.0.0

9 years ago

0.0.8

11 years ago

0.0.7

11 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago