npm.io
1.2.0 • Published 4m ago

bare-type

Licence
Apache-2.0
Version
1.2.0
Deps
0
Size
509 kB
Vulns
0
Weekly
0
Stars
3

bare-type

Cross-realm type predicates for Bare.

npm i bare-type

Usage

const type = require('bare-type')

if (type(123).isNumber()) {
  console.log(123, 'is a number')
}

API

See the bare-type reference.

Threat model

bare-type is one of the addons Bare compiles into its binary, so it inherits Bare's threat model. See docs/threat-model.md for where this addon sits in it.

License

Apache-2.0