path-case
Transform into a lower case string with slashes between words
Transform into a lower case string with slashes between words
Get a random temporary file or directory path
Get the npm config
Get a random temporary file path
Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.
Operating system specific paths.
Extract the Node.js module details like name and base path given an abosulte path to a file inside the module
paths that always use forward slashes
Write data to a random temporary file
Convert Windows file paths to unix paths.
Fast and powerful array sorting. Sort an array of objects by one or more properties. Any number of nested properties or custom comparison functions may be used.
Node.JS path module
{G,S}et object values using MongoDB-like path notation
gets the package name for a require statement
Run the Node.js binary no matter what
Resolve the path of a globally installed module
Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.
Convert an absolute path to a tilde path: `/Users/sindresorhus/dev` → `~/dev`
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
Replace user home in a string with another string. Useful for tildifying a path.