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 6 months 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 the process is running as root user, for example, one started with `sudo`☆78Updated 2 years ago
- Check if something is a generator function☆22Updated 2 years ago
- Strip redundant indentation and indent the string☆54Updated 3 years ago
- Strip the final newline character from a string/buffer☆36Updated 3 months ago
- Detect the dominant newline character of a string☆55Updated last year
- Get the directory of globally installed packages and binaries☆75Updated last year
- Convert matching double-quotes to single-quotes: `I "love" unicorns` → `I 'love' unicorns`☆55Updated 2 years ago
- Check if a path is the current working directory☆19Updated 3 years ago
- Convert directories to glob compatible strings☆44Updated 5 years ago
- Returns an array with only the unique values from all given arrays using strict equality for comparisons.☆46Updated 3 years ago
- Check if a file path is a compressed file☆17Updated 9 months ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆24Updated 2 years ago
- 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
- Check if your code is running as an npm or yarn script☆64Updated 3 years ago
- Check if something is a promise☆46Updated 3 years ago
- Simple wildcard matching☆34Updated 3 years ago
- The Node.js `util.deprecate()` function with browser support☆38Updated 6 years ago
- Get the fullname of the current user☆47Updated last year
- Check if a path is inside another path☆37Updated 2 years ago
- Create a MD5 hash with hex encoding☆45Updated last year
- Wait for any promise to be fulfilled☆55Updated 2 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆62Updated 3 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆36Updated 2 years ago
- Prints the current date and time as a UNIX timestamp or custom format☆46Updated 3 years ago
- Expands symbolic links and prints the resolved absolute filepath☆26Updated 8 months ago
- Get the version of a binary in semver format☆42Updated 9 months ago