sindresorhus / is-jpg
Check if a Buffer/Uint8Array is a JPEG image
☆26Updated 2 years ago
Alternatives and similar repositories for is-jpg:
Users that are interested in is-jpg are comparing it to the libraries listed below
- Check if a Buffer/Uint8Array is a GIF image☆28Updated 2 years ago
- Check if a path is a file, directory, or symlink☆78Updated 9 months ago
- Strip the final newline character from a string/buffer☆36Updated 6 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Check if a value is a regular expression☆24Updated 3 years ago
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- ES2015 `String#codePointAt()` ponyfill☆22Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆19Updated 4 years ago
- Check if a file path is a compressed file☆17Updated 11 months ago
- Create ansi colors by passing open and close codes.☆19Updated last year
- Define multiple non-enumerable properties at once. Uses `Object.defineProperty` when available; falls back to standard assignment in olde…☆21Updated 8 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Wait for a specified number of promises to be fulfilled☆36Updated last year
- Track the list of currently unhandled promise rejections☆24Updated 6 years ago
- Detect the dominant newline character of a string☆55Updated last year
- ECMAScript "ToPrimitive" algorithm. Provides ES5 and ES6/ES2015 versions.☆22Updated 5 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- Create a Vinyl file from an actual file☆41Updated 2 years ago
- Returns an array of unique values using strict equality for comparisons, maintaining the same order as the provided arrays.☆24Updated 4 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆35Updated 4 years ago
- Check if a path is the current working directory☆19Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Truncate a semver version: 1.2.3 → 1.2.0☆17Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Simple wildcard matching☆34Updated 3 years ago
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago