node core libs with promises and better errors
Currently just fs
is supported.
npm install --save newcore
fs
Example:
var fs = ; fs // selective error handling;
Errors:
Code | Error Name |
---|---|
EACCES | fs.errros.PermissionDenied |
EEXIST | fs.errors.FileExists |
EISDIR | fs.errors.IsDirectory |
ENOTDIR | fs.errors.NotDirectory |
ENOTEMPTY | fs.errors.NotEmptyDirectory |
ENOENT | fs.errors.NotFound |
EMFILE | fs.errors.OutOfFileDescriptors |
EPERM | fs.errors.Permissions |