Round a number to a specific number of decimal places: 1.234 → 1.2
created at Aug. 13, 2015, 6:37 p.m.
Generate random numbers that are consecutively unique
created at Nov. 13, 2013, 8:14 p.m.
Generate a random float
created at June 26, 2015, 10:27 p.m.
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.
Parse and stringify URL query strings
created at Nov. 13, 2013, 8:06 p.m.