@carv/stdlib
Common utility functions.
Installation
npm install @carv/stdlib
Usage
Namespace Import
// ESM
import * as is from '@carv/stdlib'
// CommonJS
const is = require('@carv/stdlib')
is.string('a string') // => true
is.string(123) // => false
Named Imports
// ESM
import { isString } from '@carv/stdlib'
// CommonJS
const { isString } = require('@carv/stdlib')
isString('a string') // => true
isString(123) // => false
API
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