Search npm for packages to use with Deno
Add them to your projects with a simple command that will already feel familar.
is-binary-path
Check if a file path is a binary file
is-text-path
Check if a file path is a text file
file-type
Detect the file type of a file, stream, or data
istextorbinary
Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.
which-fileextension
detect file extensions, check if text or binary file, or get list of text or binary file extensions
path-type
Check if a path is a file, directory, or symlink
is-image
Check if a file path is an image
file-is-binary
Returns true if a file is binary. Checks the actual contents, since extensions are not reliable. Basic wrapper for isbinaryfile to support vinyl files.
is-binary-buffer
Returns true if a buffer is binary. Takes a buffer and does not read from the file system.
is-blob
Check if a value is a `Blob`
is-png
Check if a Buffer/Uint8Array is a PNG image
is-stream
Check if something is a Node.js stream
is-jpg
Check if a Buffer/Uint8Array is a JPEG image
is-dotfile
Return true if a file path is (or has) a dotfile. Returns false if the path is a dot directory.
is-unc-path
Returns true if a filepath is a windows UNC file path.
is-extendable
Returns true if a value is a plain object, array or function.
is-invalid-path
Returns true if a windows file path has invalid characters.
is-wsl
Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)
is-glob
Returns `true` if the given string looks like a glob pattern or an extglob pattern. This makes it easy to create code that only uses external modules like node-glob when necessary, resulting in much faster code execution and initialization time, and a bet
is-absolute
Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.