-
- nyks/array/pickIn - Return the needed value from the Array (return the first index of the Array if not found).
- nyks/array/reindex - Take an Array of Objects as entry and return an Object indexed by propName.
- nyks/array/sum - Return the sum of all items of an Array.
-
- nyks/buffer/fromASCII - Return an Array of ASCII codes from a String.
- nyks/buffer/fromInt - Convert Int to Buffer.
- nyks/buffer/indexOf - Binary search of byte. Return -1 if not found.
- nyks/buffer/readUInt - Convert Buffer to Int.
- nyks/buffer/writeBits - Write Bits in a Bytes composed source.
-
- nyks/child_process/exec - child_process.exec equivalent with sane API for arguments.
- nyks/child_process/passthru - Like exec, but with stdout & stderr bound to current process IO streams.
- nyks/child_process/wait - Wait for a process to end properly.
-
- nyks/collection/mask - Format a collection to a mask sprintf(mask, k, v). Do it on keys if asked too.
- nyks/collection/reindex - Re-index a collection on the specified index (and pluck, if needed).
-
- nyks/color/Int2RGBA - Return an Object with Red Green Blue Alpha values from an Integer.
- nyks/color/RGB2HTML - Return an Hexadecimal code from an array of rgba values.
- nyks/color/RGBA2Int - Return an Integer value from an array of rgba values.
-
- nyks/crypto/md5 - Return the md5 digest of a buffer/utf-8 string.
- nyks/crypto/openssh2pem - Return the PEM version of an openssh public key (yeah !).
- nyks/crypto/pemme - Create a PEM encoded armor around a desired string (chunk size 65).
- nyks/crypto/sha1 - Return the sha1 digest of a buffer/utf-8 string.
-
- nyks/date/getSeason - Return the current season of a Date object.
- nyks/date/strftime - Extended mout/date/strftime.
-
- nyks/fs/copyFile - Copy a file to another.
- nyks/fs/copyFiles - Copy a list of files to a target directory.
- nyks/fs/deleteFolderRecursive - Recursive folder deletion (sync).
- nyks/fs/filemtimeSync - Return a file mtime, sync (usefull for collection/map).
- nyks/fs/filesizeSync - Return a file size, sync (usefull for collection/map).
- nyks/fs/isDirectorySync - Check if a path is a directory, sync (usefull as filter).
- nyks/fs/isFileSync - Check if a path is a file, sync (usefull as filter).
- nyks/fs/JSON - Read a JSON file, return its parsed content (sync).
- nyks/fs/md5File - Callback version of a basic async md5 file digest.
- nyks/fs/md5FileSync - Return md5 checksum of a file (sync).
- nyks/fs/mkdirpSync - Create a directory (at any depth) sync.
- nyks/fs/patchJSON - Apply a callback on an Object, write it on a differente target if specified.
- nyks/fs/readFileJSONSync - Alias of JSON.
- nyks/fs/rmrf - Spawn a process that use real rmrf command (depend on the OS).
- nyks/fs/sha1File - Callback version of a basic async sha1 file digest.
- nyks/fs/tmppath - Return a unique, self-deletable, file path in OS temp dir.
- nyks/fs/writeLazySafeSync - Like fs.writeFileSync, but check if it needs to be updated before doing it.
-
- nyks/function/cache - Protect a function, cache & debounce multiple calls with same parameter.
- nyks/function/detach - Wrap a closure in nextTick.
- nyks/function/once - Ensure a closure is only called once.
- nyks/function/promisify - Convert a node style fn to a promise.
- nyks/function/sleep - Alias of async/sleep.
- nyks/function/thunk - Promise resolution thunk.
- nyks/function/unary - Wrap a closure so it's called with only one parameter (un-curry).
-
- nyks/http/fetch - Convert 'nyks/http/get' function into a Promise.
- nyks/http/get - Call http/https.get, depending on the enpoint Url.
- nyks/http/request - Helper for http/https.request.
-
- nyks/http/header/parse - Return an Object of parsed headers (or cookies).
-
- nyks/lang/toBool - Return the Boolean value of a String (usefull for prompts).
-
- nyks/math/log2 - Returns the base 2 logarithm of a number.
- nyks/math/log10 - Returns the base 10 logarithm of a number.
-
- nyks/object/combine - Creates an object by using one array for keys and another for its values.
- nyks/object/dive - Dive down an object to a specific path.
- nyks/object/difference - Create an Array of keys that are different between two objects.
- nyks/object/indexOf - Return the matched key of an Object from the current value, return null if not found.
- nyks/object/jsonpath - Return the value of an object through a specific path (with / as a separator).
- nyks/object/mask - Format a dictionnary to a mask sprintf(mask, k, v).
- nyks/object/sort - Return a new Object with only specified keys.
-
- nyks/os/iswsl - Return true if we are in the Linux Subsystem on Windows.
- nyks/os/wslpath - Convert Unix and Windows format paths.
-
- nyks/path/extend - Extend system PATH with new directories.
- nyks/path/jail - Like path.join, but throw when attempting escape.
- nyks/path/url - Return a path with a file:// scheme syntax.
- nyks/path/which - Search for a binary in env PATH.
-
- nyks/process/formatArgs - Convert an Object of params to an Array of parsed command line args.
- nyks/process/parseArgs - Command line args parser, aligned on yks patterns.
- nyks/process/splitArgs - Split a string into whitespace separated chunks.
-
- nyks/promise/defer - Used to interface Asynchronous functions, callback-based (read NodeJS q defer documentaiton).
- nyks/promise/nodeify - Callbackify a Promise...
-
- nyks/require/lookup - Return the module a file belong to.
- nyks/require/resolve - Simple / portable alternative to require.resolve.
-
- nyks/stream/drain - Drain a stream, return the contents as a buffer.
- nyks/stream/fromBuffer - Return a readable stream from a buffer.
- nyks/stream/pipe - Pipe a stream to another.
-
- nyks/string/capitalize - Capitalize the first letter of a string.
- nyks/string/chunk - Split a string into chunk of specified size.
- nyks/string/crc32 - Crc32 of current string.
- nyks/string/format - Lite equivalent for util.format/sprintf (from util.format).
- nyks/string/hexToRgb - Convert Hexadecimal color code to RGB array.
- nyks/string/prettyFileSize - Return a pretty format of Bytes.
- nyks/string/repeat - Nothing fancy, alternative to mout.
- nyks/string/replaces - Replace collection in current string.
- nyks/string/rot13 - Rot13 of current string.
- nyks/string/rreplaces - Recursive (iterative) replaces.
- nyks/string/sprintf - Sprintf as you think it is (like format, but more complete).
- nyks/string/stripEnd - Strip string pattern at end (complete mout/string/endsWith).
- nyks/string/stripStart - Strip string pattern at beginning (complete mout/string/startsWith).
- nyks/string/truncate - Truncate string to fixed length.