Skip to content

carvjs/is

Repository files navigation

@carv/is

Type checking utilities.

License Latest Release Bundle Size Typescript Sponsor

Installation

npm install @carv/is

Usage

Namespace Import

// ESM
import * as is from '@carv/is'

// CommonJS
const is = require('@carv/is')

is.string('a string') // => true
is.string(123) // => false

Named Imports

// ESM
import { isString } from '@carv/is'

// CommonJS
const { isString } = require('@carv/is')

isString('a string') // => true
isString(123) // => false

Support

This project is free and open-source, so if you think this project can help you or anyone else, you may star it on GitHub. Feel free to open an issue if you have any idea, question, or you've found a bug.

Contribute

Thanks for being willing to contribute!

Working on your first Pull Request? You can learn how from this free series How to Contribute to an Open Source Project on GitHub

We are following the Conventional Commits convention.

Develop

  • yarn test: Run test suite
  • yarn build: Generate bundles
  • yarn lint: Lints code

Sponsors

Kenoxa GmbH Kenoxa GmbH

License

MIT © Kenoxa GmbH