JSPM

Found 4986 results for check if es file type

file-type

Detect the file type of a file, stream, or data

  • v21.1.1
  • 155.98
  • Published

path-type

Check if a path is a file, directory, or symlink

  • v6.0.0
  • 151.95
  • Published

is-plain-object

Returns true if an object was created by the `Object` constructor, or Object.create(null).

  • v5.0.0
  • 139.45
  • Published

is-binary-path

Check if a file path is a binary file

  • v3.0.0
  • 136.52
  • Published

is-text-path

Check if a file path is a text file

  • v3.0.0
  • 122.87
  • Published

is-number

Returns true if a number or string value is a finite number. Useful for regex matches, parsing, user input, etc.

  • v7.0.0
  • 122.10
  • Published

is-plain-obj

Check if a value is a plain object

  • v4.1.0
  • 119.19
  • Published

is-observable

Check if a value is an Observable

  • v3.0.0
  • 119.01
  • Published

is-obj

Check if a value is an object

  • v3.0.0
  • 118.42
  • Published

is-generator-fn

Check if something is a generator function

  • v3.0.0
  • 117.97
  • Published

type-check

type-check allows you to check the types of JavaScript values at runtime with a Haskell like type syntax.

  • v0.4.0
  • 117.09
  • Published

ts-interface-checker

Runtime library to validate data against TypeScript interfaces

  • v1.0.2
  • 116.29
  • Published

is-stream

Check if something is a Node.js stream

  • v4.0.1
  • 113.59
  • Published

is-gif

Check if a Buffer/Uint8Array is a GIF image

  • v4.0.1
  • 113.56
  • Published

kind-of

Get the native type of a value.

  • v6.0.3
  • 113.51
  • Published

has-value

Returns true if a value exists, false if empty. Works with deeply nested values using object paths.

  • v2.0.2
  • 112.26
  • Published

is-png

Check if a Buffer/Uint8Array is a PNG image

  • v3.0.1
  • 110.51
  • Published

has-flag

Check if argv has a specific flag

  • v5.0.1
  • 108.88
  • Published

is-jpg

Check if a Buffer/Uint8Array is a JPEG image

  • v3.0.0
  • 107.19
  • Published

is-invalid-path

Returns true if a windows file path has invalid characters.

  • v1.0.2
  • 107.15
  • Published

p-is-promise

Check if something is a promise

  • v4.0.0
  • 106.54
  • Published

is-regexp

Check if a value is a regular expression

  • v3.1.0
  • 105.81
  • Published

is-blob

Check if a value is a `Blob`

  • v3.0.0
  • 105.03
  • Published

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`.

  • v1.0.0
  • 104.90
  • Published

is-fullwidth-code-point

Check if the character represented by a given Unicode code point is fullwidth

  • v5.1.0
  • 104.21
  • Published

is-gzip

Check if a Buffer/Uint8Array is a GZIP file

  • v2.0.0
  • 103.74
  • Published

is-relative

Returns `true` if the path appears to be relative.

  • v1.0.0
  • 102.29
  • Published

isobject

Returns true if the value is an object and not an array or null.

  • v4.0.0
  • 101.97
  • Published

is-svg

Check if a string is SVG

  • v6.1.0
  • 101.20
  • Published

is2

A type checking library where each exported function returns either true or false and does not throw. Also added tests.

  • v2.0.9
  • 100.84
  • Published

is-image

Check if a file path is an image

  • v4.0.0
  • 97.64
  • Published

is-descriptor

Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.

  • v3.1.1
  • 96.98
  • Published

is-valid-path

Returns true if a file path does not contain any invalid characters.

  • v0.1.1
  • 96.29
  • Published

component-type

Type assertions aka less-broken `typeof`

  • v2.0.0
  • 95.96
  • Published

is-port-reachable

Check if a local or remote port is reachable

  • v4.0.0
  • 95.64
  • Published

is-network-error

Check if a value is a Fetch network error

  • v1.3.0
  • 95.25
  • Published

is-extendable

Returns true if a value is a plain object, array or function.

  • v1.0.1
  • 95.05
  • Published

is-path-cwd

Check if a path is the current working directory

  • v4.0.1
  • 94.92
  • Published

is-data-descriptor

Returns true if a value has the characteristics of a valid JavaScript data descriptor.

  • v2.1.3
  • 94.89
  • Published

is-wsl

Check if the process is running inside Windows Subsystem for Linux (Bash on Windows)

  • v3.1.0
  • 94.69
  • Published

is-accessor-descriptor

Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.

  • v3.0.5
  • 94.40
  • Published

archive-type

Detect the archive type of a Buffer/Uint8Array

  • v4.0.0
  • 94.19
  • Published

unist-util-is

unist utility to check if a node passes a test

  • v6.0.1
  • 93.37
  • Published

is-windows

Returns true if the platform is windows. UMD module, works with node.js, commonjs, browser, AMD, electron, etc.

  • v1.0.2
  • 93.18
  • Published

is-primitive

Returns `true` if the value is a primitive.

  • v3.0.1
  • 92.56
  • Published

is-extglob

Returns true if a string has an extglob.

  • v2.1.1
  • 92.52
  • Published

is-resolvable

Check if a module ID is resolvable with require()

  • v1.1.0
  • 92.38
  • Published

isutf8

Check if a Node.js Buffer or Uint8Array is UTF-8

  • v4.0.1
  • 91.54
  • Published

environment

Check which JavaScript environment your code is running in at runtime: browser, Node.js, Bun, etc

  • v1.1.0
  • 91.26
  • Published

lint-staged

Lint files staged by git

  • v16.2.7
  • 91.15
  • Published

image-type

Detect the image type of an ArrayBuffer/Uint8Array

  • v6.0.0
  • 90.79
  • Published

is-tar

Check if a Buffer/Uint8Array is a TAR file

  • v1.0.0
  • 90.25
  • Published

is-path-in-cwd

Check if a path is in the current working directory

  • v4.0.0
  • 90.00
  • Published

is-retry-allowed

Check whether a request can be retried based on the `error.code`

  • v3.0.0
  • 89.86
  • Published

is-url-superb

Check if a string is a URL

  • v6.1.0
  • 89.52
  • Published

typical

Isomorphic, functional type-checking for Javascript

  • v7.3.0
  • 89.06
  • Published

is-lite

A tiny javascript type testing tool

  • v2.0.0
  • 88.31
  • Published

ow

Function argument validation for humans

  • v3.1.1
  • 87.46
  • Published

inspect-with-kind

`util.inspect` with additional type information

  • v1.0.5
  • 86.71
  • Published

fs-exists-sync

Drop-in replacement for `fs.existsSync` with zero dependencies. Other libs I found either have crucial differences from fs.existsSync, or unnecessary dependencies. See README.md for more info.

  • v0.1.0
  • 85.84
  • Published

tsd

Check TypeScript type definitions

  • v0.33.0
  • 85.70
  • Published

superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).

  • v2.0.2
  • 83.99
  • Published

is-window

Checks if the given value is a window object.

  • v1.0.2
  • 83.93
  • Published

is-fn

Check if a value is a function

  • v3.0.0
  • 83.84
  • Published

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

  • v4.0.3
  • 83.47
  • Published

is-zip

Check if a Buffer/Uint8Array is a ZIP file

  • v1.0.0
  • 83.45
  • Published

@firanorg/mollitia-molestias-accusamus

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url]

  • v10.13.142
  • 83.35
  • Published

please-upgrade-node

Displays a beginner-friendly message telling your user to upgrade their version of Node

  • v3.2.0
  • 83.35
  • Published

simple-is

maximally minimal type-testing library

  • v0.2.0
  • 82.49
  • Published

tcp-port-used

A simple Node.js module to check if a TCP port is already bound.

  • v1.0.2
  • 82.13
  • Published

shallow-equal

Typescript-compatible minimalistic shallow equality check for arrays/objects

  • v3.1.0
  • 81.72
  • Published

is-builtin-module

Check if a string matches the name of a Node.js builtin module

  • v5.0.0
  • 81.43
  • Published

is-bzip2

Check if a Buffer/Uint8Array is a BZIP2 file

  • v1.0.0
  • 81.12
  • Published

ts-expect

Checks TypeScript types match expected values

  • v1.3.0
  • 80.46
  • Published

is-valid-glob

Return true if a value is a valid glob pattern or patterns.

  • v1.0.0
  • 80.17
  • Published

bin-check

Check if a binary is working

  • v4.1.0
  • 80.15
  • Published

update-notifier

Update notifications for your CLI app

  • v7.3.1
  • 80.15
  • Published

@achrinza/strong-type

allows easy type enforcement for all JS types objects and classes. it is also extensible and provides simple to use type checks for your own custom classes and types

  • v1.1.20
  • 79.69
  • Published

koalas

Coalesce for JavaScript. Returns the first value that is not undefined or null.

  • v1.0.2
  • 79.31
  • Published

is-identifier

Check if a string is a valid JavaScript identifier

  • v1.0.1
  • 79.15
  • Published

is-ip

Check if a string is an IP address

  • v5.0.1
  • 78.68
  • Published

ember-cli-dependency-checker

Ember CLI addon for detecting missing npm and bower dependencies before executing ember commands

  • v3.3.3
  • 78.38
  • Published

is-wayland

Check if the current Linux session is using Wayland

  • v0.1.0
  • 78.27
  • Published

@dramaorg/delectus-culpa-reprehenderit

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

  • v3.5.94
  • 77.68
  • Published

get-object

Get a property from an object using dot (object path) notation.

  • v0.2.0
  • 77.47
  • Published

valid-url

URI validation functions

  • v1.0.9
  • 77.37
  • Published

audio-type

Detect the audio type of a Buffer/Uint8Array

  • v2.2.1
  • 77.31
  • Published

is-native

Checks if the given value is a native function.

  • v1.0.1
  • 76.51
  • Published

ts-interface-builder

Compile TypeScript interfaces into a description that allows runtime validation

  • v0.3.3
  • 76.33
  • Published

file-exists-safe

Check if a file exists without try catch

  • v2.0.0
  • 76.31
  • Published

strong-type

allows easy type enforcement for all JS types objects and classes. it is also extensible and provides simple to use type checks for your own custom classes and types

  • v1.1.0
  • 76.01
  • Published

is-in-ci

Check if the process is running in a Continuous Integration (CI) environment

  • v2.0.0
  • 75.75
  • Published

is-whitespace

Returns true if the value passed is all whitespace.

  • v0.3.0
  • 75.51
  • Published

bcp-47-match

Match BCP 47 language tags with language ranges per RFC 4647

  • v2.0.3
  • 74.90
  • Published

flow-bin

Binary wrapper for Flow - A static type checker for JavaScript

  • v0.291.0
  • 74.71
  • Published

is-empty

Check whether a value is "empty".

  • v1.2.0
  • 74.59
  • Published

is-firefox

Check if browser is Firefox

  • v1.0.3
  • 74.12
  • Published

process-exists

Check if a process is running

  • v5.0.0
  • 74.08
  • Published

ts-standard

TypeScript Standard Style based on StandardJS

  • v12.0.2
  • 74.06
  • Published

@stdlib/assert

Standard assertion utilities.

  • v0.3.3
  • 74.03
  • Published

is-bluebird

Is this a bluebird promise I see before me?

  • v1.0.2
  • 73.86
  • Published

check-types

A little library for asserting types and values, with zero dependencies.

  • v11.2.3
  • 73.68
  • Published

is-npm

Check if your code is running as an npm script

  • v6.1.0
  • 73.68
  • Published

bin-wrapper

Binary wrapper that makes your programs seamlessly available as local dependencies

  • v4.1.0
  • 73.01
  • Published

@metamask/superstruct

A simple and composable way to validate data in JavaScript (and TypeScript).

  • v3.2.1
  • 72.93
  • Published

is-nil

Checks if the given value is null or undefined

  • v1.0.1
  • 72.66
  • Published

falsey

Returns true if the given is falsey (according to JavaScript) or matches a 'falsey' keyword.

  • v1.0.0
  • 72.34
  • Published

is-redirect

Check if a number is a redirect HTTP status code

  • v2.0.0
  • 72.19
  • Published

hasbin

Check whether a binary exists in the PATH environment variable

  • v1.2.3
  • 71.94
  • Published

is-alphanumeric

Check if a string only contains alphanumeric characters

  • v1.0.0
  • 71.79
  • Published

@stdlib/fs-exists

Test whether a path exists on the filesystem.

  • v0.2.2
  • 71.62
  • Published

undeclared-identifiers

find undeclared identifiers and property accesses in a javascript file.

  • v1.1.3
  • 71.51
  • Published

is-ssh

Check if an input value is a ssh url or not.

  • v1.4.1
  • 71.21
  • Published

skema

Skema provides a handy & composable way to validate / transform / purify the input data.

  • v9.5.5
  • 71.10
  • Published

is-video

Check if a file path is a video file

  • v2.0.0
  • 70.98
  • Published

any

Returns `true` if a value exists in the given string, array or object.

  • v1.0.0
  • 70.68
  • Published

is-iexplorer

Check if browser is Internet Explorer

  • v1.0.0
  • 70.61
  • Published

has-glob

Returns `true` if an array has a glob pattern.

  • v1.0.0
  • 70.41
  • Published

shallow-equals

Determine if an array or object is equivalent with another, *not* recursively

  • v1.0.0
  • 70.37
  • Published

firstline

Async npm module for Node JS that reads the first line of a file

  • v2.0.2
  • 70.08
  • Published

istextorbinary

Determine if a filename and/or buffer is text or binary. Smarter detection than the other solutions.

  • v9.5.0
  • 70.06
  • Published

is-mobile

Check if mobile browser.

  • v5.0.0
  • 68.93
  • Published

@zitterorg/magni-eos

[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im

  • v5.8.60
  • 68.73
  • Published

has-async-hooks

check if the current node version has async_hooks.

  • v1.0.0
  • 68.71
  • Published

is-flac

Check if a Buffer/Uint8Array is a FLAC file.

  • v1.1.2
  • 68.43
  • Published

npm-audit-resolver

Aids humans and automation in managing npm audit results

  • v3.0.0-RC.0
  • 68.28
  • Published

is-mp3

Check if a Buffer/Uint8Array is a MP3 file.

  • v1.1.3
  • 67.47
  • Published

predicates

Set of various predicates for type checking, assertions, filtering etc

  • v2.0.3
  • 67.45
  • Published

is-m4a

Check if a Buffer/Uint8Array is a m4a file.

  • v1.0.2
  • 67.00
  • Published

is-wav

Check if a Buffer/Uint8Array is a wav file.

  • v1.1.2
  • 66.99
  • Published

types-eslintrc

Type checking for .eslintrc.json

  • v2.0.0
  • 66.87
  • Published

is-iojs

is-iojs determines if runtime is io.js.

  • v1.1.0
  • 66.47
  • Published

valid-filename

Check if a string is a valid filename

  • v4.0.0
  • 66.46
  • Published

estree-is-function

check if an AST node is a function of some sort

  • v1.0.0
  • 66.40
  • Published

is-win

Check if the machine is running Windows or not.

  • v1.0.11
  • 66.32
  • Published

validate.io-object

Validates if a value is a JavaScript object.

  • v1.0.4
  • 66.26
  • Published

unist-util-visit-parents

unist utility to recursively walk over nodes, with ancestral information

  • v6.0.2
  • 65.95
  • Published

jest-runner-tsd

Run your TypeScript type tests using Jest

  • v6.0.0
  • 65.84
  • Published

npm-name

Check whether a package or organization name is available on npm

  • v8.0.0
  • 65.61
  • Published

license-check-and-add

A tool to enable the checking, inserting and removal of licenses

  • v4.0.5
  • 65.43
  • Published

is-ogg

Check if a Buffer/Uint8Array is an OGG file.

  • v1.1.2
  • 65.11
  • Published

dotenv-checker

🔌 CLI to check/generate .env files and maintain them synchronized

  • v1.1.7
  • 64.91
  • Published

upcast

Upcast is a low-level JavaScript type checking and casting library

  • v4.0.0
  • 64.61
  • Published

glob-option-error

Create an error from the result of validate-glob-opts

  • v1.0.0
  • 64.59
  • Published

root-check

Try to downgrade the permissions of a process with root privileges and block access if it fails

  • v2.0.0
  • 64.27
  • Published

yeoman-doctor

Detect potential issues with users system that could prevent Yeoman from working correctly

  • v6.0.0
  • 64.05
  • Published

types-tsconfig

Type checking for tsconfig.json

  • v2.1.1
  • 63.68
  • Published

is-zip-file

Checks if the file path is zip file. It does not read the complete file nor it depends upon file extension

  • v1.0.2
  • 63.55
  • Published

npm-check

Check for outdated, incorrect, and unused dependencies.

  • v6.0.1
  • 63.37
  • Published

is-html

Check if a string is HTML

  • v3.2.0
  • 63.18
  • Published

markdown-link-check

checks the all of the hyperlinks in a markdown text to determine if they are alive or dead

  • v3.14.2
  • 62.19
  • Published

update-notifier-cjs

Update notifications for your CLI app, maintained in CommonJS (CJS)

  • v5.1.7
  • 62.15
  • Published

@chainsafe/is-ip

Check if a string is an IP address

  • v2.1.0
  • 62.12
  • Published

@marionebl/is

Type check values: `is.string('🦄') //=> true`

  • v0.5.1-0
  • 62.03
  • Published

isemail

Validate an email address according to RFCs 5321, 5322, and others

  • v3.2.0
  • 62.02
  • Published

file-type-cjs-fix

A CommonJS port from the ESM file-type package. Now fixed to not have 'tarHeaderChecksumMatches' error!

    • v1.1.1
    • 61.68
    • Published

    is-woff2

    Check if a buffer/Uint8Array is a woff2 file

    • v1.0.0
    • 61.58
    • Published

    @sgtpooki/file-type

    An *Ackchyually* browser compatible file-type hacky replacement of the `file-type` package. Forked from https://github.com/sindresorhus/file-type

    • v1.0.1
    • 61.55
    • Published

    typy

    Minimal JavaScript type checking library

    • v3.3.0
    • 61.38
    • Published

    check-type

    Library to check variable type and properties in object.

    • v0.4.11
    • 61.26
    • Published

    which-promise

    Promisified version of node-which

    • v1.0.0
    • 61.07
    • Published

    delete

    Delete files and folders and any intermediate directories if they exist (sync and async).

    • v1.1.0
    • 61.03
    • Published

    is-in-ssh

    Check if the process is running in an SSH session

    • v1.0.0
    • 60.94
    • Published

    is-d

    Check if a file is a directory

    • v1.0.0
    • 60.86
    • Published

    electron-is-dev

    Check if Electron is running in development

    • v3.0.1
    • 60.85
    • Published

    typechecker

    Utilities to get and check variable types (isString, isPlainObject, isRegExp, etc)

    • v9.3.0
    • 60.85
    • Published

    link-check

    checks whether a hyperlink is alive (200 OK) or dead

    • v5.5.1
    • 60.83
    • Published

    is-iterable

    Checks if a given object is iterable

    • v1.1.1
    • 60.16
    • Published

    has-own-deep

    Returns true if an object has an own, nested property using dot notation paths ('a.b.c').

    • v1.1.0
    • 59.86
    • Published

    endpoint-utils

    Utils to deal with TCP ports and hostnames. Safe for everyday use.

    • v1.0.2
    • 59.44
    • Published

    xo

    JavaScript/TypeScript linter (ESLint wrapper) with great defaults

    • v1.2.3
    • 59.22
    • Published

    is-language-code

    Is given string a language code (as per IANA)

    • v5.1.0
    • 58.99
    • Published

    gulp-eslint

    A gulp plugin for processing files with ESLint

    • v6.0.0
    • 58.67
    • Published

    is-ttf

    Check if a String/Buffer is TTF

    • v0.2.2
    • 58.48
    • Published

    bs58check

    A straightforward implementation of base58-check encoding

    • v4.0.0
    • 58.44
    • Published