sindresorhus / is-png
Check if a Buffer/Uint8Array is a PNG image
☆47Updated 2 years ago
Related projects: ⓘ
- Fill in a range of numbers or letters, positive or negative, optionally passing an increment or multiplier to use.☆54Updated last month
- Create a MD5 hash with hex encoding☆45Updated 10 months ago
- Manipulate the HTTP Vary header☆60Updated 4 months ago
- Repeat the given string n times. Fastest implementation for repeating a string (2x faster than the native method)☆49Updated 2 years ago
- Bytes go in, but they don't come out (when muted).☆53Updated 2 weeks ago
- Lo-dash's array-clice method. Slices `array` from the `start` index up to, but not including, the `end` index.☆20Updated 6 years ago
- List of node.js builtin modules☆38Updated 5 months ago
- Fallback to a default if `process.stdout.getWindowSize` doesn't exist☆24Updated 2 months ago
- Is the typeof value a javascript primitive?☆37Updated 3 years ago
- Try to downgrade the permissions of a process with root privileges and block access if it fails☆31Updated last year
- Package and un-package modules of some sort (oooh, perhaps you could package JavaScript modules on npm...)☆37Updated 6 years ago
- Convert an absolute path to tilde path: /Users/sindresorhus/dev => ~/dev☆93Updated 2 years ago
- An ESnext spec-compliant `Array.prototype.flat` shim/polyfill/replacement that works as far down as ES3.☆32Updated last year
- Get the directory of globally installed packages and binaries☆75Updated 10 months ago
- Create a Vinyl file from an actual file☆41Updated last year
- Modern Buffer API polyfill without footguns☆26Updated 3 years ago
- Finds the first parent directory that contains a given file or directory.☆24Updated 3 years ago
- Recursively flatten an array or arrays. This is the fastest implementation of array flatten.☆59Updated 2 years ago
- Get the set npm registry URL☆53Updated 2 years ago
- Convert ArrayBuffer to string☆24Updated 5 years ago
- Check if a string matches the name of a Node.js builtin module☆58Updated 4 months ago
- Detect the dominant newline character of a string☆55Updated 11 months ago
- ☆45Updated 2 years ago
- Check if something is a promise☆46Updated 3 years ago
- Get a random temporary file path☆79Updated last year
- Expand placeholders in a template string☆18Updated 3 years ago
- Check if a protocol requires a certain port number to be added to an URL.☆11Updated last year
- Nested/recursive `.gitignore`/`.npmignore` parsing and filtering.☆57Updated 2 weeks ago
- Import a module like with `require()` but from a given path☆86Updated 2 years ago
- Callback wrapping utility☆55Updated 7 months ago