Skip to content

dweinstein/node-posix-constants

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

some helpful posix constants for node

Resources

License

Stars

Watchers

Forks

Packages

No packages published