posix-constants

0.0.2 • Public • Published

SYNOPSIS

Some posix constants I've found useful to have in javascript. Currently constants from <sys/errno.h> and a few from <sys/stat.h> (file modes) are present.

USAGE

var posixConst = require('posix-constants');
var errno = posixConst.errno;
var EPERM = errno.EPERM;
 
function no_perm() {
  return -EPERM;
}
 
process.exit(no_perm());

Readme

Keywords

Package Sidebar

Install

npm i posix-constants

Weekly Downloads

2

Version

0.0.2

License

MIT

Last publish

Collaborators

  • dweinstein