0.0.2 • Published 9 years ago

posix-constants v0.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

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());
0.0.2

9 years ago

0.0.1

9 years ago