Generate a random integer
created at June 26, 2015, 10:23 p.m.
Detect the indentation of code
created at Aug. 11, 2013, 12:24 a.m.
Strip leading whitespace from each line in a string
created at March 29, 2014, 2:15 p.m.
Indent each line in a string
created at June 6, 2014, 8:16 p.m.
Remove or replace part of a string like Array#splice
created at Aug. 19, 2015, 6:27 p.m.
Escape RegExp special characters
created at June 24, 2014, 3:04 p.m.
Convert a dash/dot/underscore/space separated string to camelCase: foo-bar → fooBar
created at Oct. 12, 2014, 10:58 a.m.
Get the real length of a string - by correctly counting astral symbols and ignoring ansi escape codes
created at April 16, 2014, 9:48 p.m.
Detect the image type of a Buffer/Uint8Array
created at April 21, 2014, 5:46 p.m.
Pad each line in a stream
created at Jan. 25, 2015, 10:03 a.m.
Transform the first chunk in a stream
created at May 25, 2014, 3:42 p.m.
Convert a string/promise/array/iterable/asynciterable/buffer/typedarray/arraybuffer/object into a stream
created at May 29, 2015, 10:47 p.m.
Get a stream as a string, Buffer, ArrayBuffer or array
created at Oct. 14, 2015, 5:22 p.m.
Find the root directory of a Node.js project or npm package
created at Sept. 1, 2015, 7:39 a.m.
Convert a string to a valid safe filename
created at Jan. 14, 2015, 5:23 a.m.
Stringify and write JSON to a file atomically
created at Sept. 2, 2015, 6:26 a.m.
Read and parse a JSON file
created at Sept. 2, 2015, 6:38 a.m.
Find a file or directory by walking up parent directories
created at Sept. 1, 2015, 7:12 a.m.
Block users from running your app with root permissions
created at June 23, 2013, 12:21 p.m.