Package Exports
- nyks
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (nyks) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
nyks provide a set of "missing" stuffs in nodejs basic api. All those functions will eventually end up in the official API :-).
Natives
child_process
- require('child_process').exec_window(cmd, args, callback);
child_process.exec equivalent for windowed applications.
fs
require('fs').deleteFolderRecursive(path); Recursive folder deletion
require('fs').md5FileSync(file_path) Return md5 checksum of a file
require('fs').filesizeSync(path); Filesize sync
require('fs').tmppath (ext) Return a unique file path in OS temp dir
require('fs').renameCross(src, dest, callback) Rename src to dest (even on cross devices)
Natives
Object
- Object.sort(obj, keys) Return a new object based on obj's existings keys
Buffer
- Buffer.prototype.indexOf(byte) Binary search of byte Return -1 if not found
String
String.prototype.startsWith(str) Return boolean
String.prototype.endsWith(str) Return boolean
String.prototype.replaces(dict) Replace key => value in current string
String.prototype.rreplaces(dict) Recursive (iterative) replaces
String.prototype.stripEnd(str) Return trimmed string of "str" if present (else, leave untouched)
zero_functions
- bool(val) Return boolean value of *val with "f", "false", "n" and "no" casted as "false" (case insensitive)