dweinstein / node-posix-constants

some helpful posix constants for node

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

License:MIT License


Languages

Language:JavaScript 100.0%