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 path is a file, directory, or symlink☆78Updated 7 months ago
- Check if a Buffer/Uint8Array is a GIF image☆28Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Get the directory of globally installed packages and binaries☆75Updated last year
- Detect the dominant newline character of a string☆55Updated last year
- Get the first path that exists on disk of multiple paths☆58Updated 2 years ago
- Rename a function☆46Updated last year
- Get the visual width of the widest line in a string - the number of columns required to display it☆37Updated last year
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Strip the final newline character from a string/buffer☆36Updated 4 months ago
- Create an array with values that are present in the first input array but not additional ones☆38Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 3 years ago
- Create ansi colors by passing open and close codes.☆19Updated 10 months ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Check if the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if a value is an object☆40Updated 3 years ago
- Check if a path is the current working directory☆19Updated 3 years ago
- Resolve the path of a globally installed module☆41Updated last year
- Import a module like with `require()` but from a given path☆85Updated 2 years ago
- Returns an array filled with the specified input☆42Updated 2 years ago
- Turn an object into a string of HTML attributes☆49Updated last year
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆57Updated 7 months ago
- Returns the directory used by NPM for globally installed NPM packages.☆35Updated 6 years ago
- Check if something is a promise☆46Updated 3 years ago
- Check if your package was installed globally☆70Updated last year
- Lowercase the keys of an object☆40Updated last year
- Check if a path is inside another path☆37Updated 2 years ago
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Check if something is a generator function☆22Updated 2 years ago