sindresorhus / strip-bom
Strip UTF-8 byte order mark (BOM) from a string
☆111Updated 4 years ago
Alternatives and similar repositories for strip-bom:
Users that are interested in strip-bom are comparing it to the libraries listed below
- Parse `.git/config` into a JavaScript object. sync or async.☆61Updated 6 years ago
- Resolve the path of a module like `require.resolve()` but from the current working directory☆68Updated 4 years ago
- Read a package.json file☆165Updated last year
- Check if a path exists☆151Updated 3 years ago
- Import a globally installed module☆58Updated last year
- Create and parse HTTP Content-Type header☆136Updated 9 months ago
- Find the first file matching a given pattern in the current directory or the nearest ancestor directory.☆98Updated last year
- The cmd-shim used in npm☆77Updated last week
- Compressible Content-Type / mime checking.☆100Updated last year
- Package and un-package modules of some sort (oooh, perhaps you could package JavaScript modules on npm...)☆37Updated 7 years ago
- Find the closest package.json file☆163Updated last year
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- normalizes package metadata, typically found in package.json file.☆200Updated 3 weeks ago
- Get the gzipped size of a string or buffer☆172Updated 3 years ago
- Flatten a multi-dimensional array in JavaScript.☆86Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- destroy a stream if possible☆56Updated 8 months ago
- Check if the process is running with elevated privileges☆41Updated 3 years ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Reverse minimist. Convert an object of options into an array of command-line arguments☆185Updated 2 years ago
- Resolve the path of a module like require.resolve() but from a given path☆142Updated 4 years ago
- Detect the dominant newline character of a string☆55Updated last year
- Watch globs and execute a function upon change, with intelligent defaults for debouncing and queueing.☆80Updated last year
- Start a promise chain☆58Updated 3 years ago
- Indent each line in a string☆113Updated 2 years ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Convert a value to an array☆129Updated 3 years ago
- Get the path of the caller module☆64Updated 3 years ago
- Import a module like with `require()` but from the current working directory☆52Updated 2 years ago
- Normalize file path slashes to be unix-like forward slashes. Used by chokidar, anymatch, and many others!☆110Updated 2 years ago