JSPM

  • Created
  • Published
  • Downloads 183507
  • Score
    100M100P100Q179133F
  • License Apache-2.0

Collection of 70+ type, feature & value checks

Package Exports

  • @thi.ng/checks
  • @thi.ng/checks/exists
  • @thi.ng/checks/exists-not-null
  • @thi.ng/checks/has-bigint
  • @thi.ng/checks/has-crypto
  • @thi.ng/checks/has-max-length
  • @thi.ng/checks/has-min-length
  • @thi.ng/checks/has-performance
  • @thi.ng/checks/has-wasm
  • @thi.ng/checks/has-webgl
  • @thi.ng/checks/has-websocket
  • @thi.ng/checks/implements-function
  • @thi.ng/checks/is-alphanum
  • @thi.ng/checks/is-array
  • @thi.ng/checks/is-arraybufferlike
  • @thi.ng/checks/is-arraybufferview
  • @thi.ng/checks/is-arraylike
  • @thi.ng/checks/is-ascii
  • @thi.ng/checks/is-async-iterable
  • @thi.ng/checks/is-bigint
  • @thi.ng/checks/is-blob
  • @thi.ng/checks/is-boolean
  • @thi.ng/checks/is-chrome
  • @thi.ng/checks/is-data-url
  • @thi.ng/checks/is-date
  • @thi.ng/checks/is-even
  • @thi.ng/checks/is-false
  • @thi.ng/checks/is-file
  • @thi.ng/checks/is-firefox
  • @thi.ng/checks/is-float-string
  • @thi.ng/checks/is-function
  • @thi.ng/checks/is-generator
  • @thi.ng/checks/is-hex
  • @thi.ng/checks/is-hex-color
  • @thi.ng/checks/is-ie
  • @thi.ng/checks/is-in-range
  • @thi.ng/checks/is-int-string
  • @thi.ng/checks/is-int32
  • @thi.ng/checks/is-iterable
  • @thi.ng/checks/is-map
  • @thi.ng/checks/is-mobile
  • @thi.ng/checks/is-nan
  • @thi.ng/checks/is-negative
  • @thi.ng/checks/is-nil
  • @thi.ng/checks/is-node
  • @thi.ng/checks/is-not-string-iterable
  • @thi.ng/checks/is-null
  • @thi.ng/checks/is-number
  • @thi.ng/checks/is-numeric
  • @thi.ng/checks/is-object
  • @thi.ng/checks/is-odd
  • @thi.ng/checks/is-plain-object
  • @thi.ng/checks/is-positive
  • @thi.ng/checks/is-primitive
  • @thi.ng/checks/is-promise
  • @thi.ng/checks/is-promiselike
  • @thi.ng/checks/is-proto-path
  • @thi.ng/checks/is-regexp
  • @thi.ng/checks/is-safari
  • @thi.ng/checks/is-set
  • @thi.ng/checks/is-string
  • @thi.ng/checks/is-symbol
  • @thi.ng/checks/is-touch-event
  • @thi.ng/checks/is-transferable
  • @thi.ng/checks/is-true
  • @thi.ng/checks/is-typedarray
  • @thi.ng/checks/is-uint32
  • @thi.ng/checks/is-undefined
  • @thi.ng/checks/is-uuid
  • @thi.ng/checks/is-uuid4
  • @thi.ng/checks/is-zero

Readme

@thi.ng/checks

npm version npm downloads Mastodon Follow

[!NOTE] This is one of 200 standalone projects, maintained as part of the @thi.ng/umbrella monorepo and anti-framework.

🚀 Please help me to work full-time on these projects by sponsoring me on GitHub. Thank you! ❤️

About

Collection of 70+ type, feature & value checks.

Status

STABLE - used in production

Search or submit any issues for this package

Installation

yarn add @thi.ng/checks

ESM import:

import * as ch from "@thi.ng/checks";

Browser ESM import:

<script type="module" src="https://esm.run/@thi.ng/checks"></script>

JSDelivr documentation

For Node.js REPL:

const ch = await import("@thi.ng/checks");

Package sizes (brotli'd, pre-treeshake): ESM: 1.65 KB

Dependencies

API

Generated API docs

TODO

Authors

If this project contributes to an academic publication, please cite it as:

@misc{thing-checks,
  title = "@thi.ng/checks",
  author = "Karsten Schmidt and others",
  note = "https://thi.ng/checks",
  year = 2016
}

License

© 2016 - 2025 Karsten Schmidt // Apache License 2.0