typedescriptor
typedescriptor identifies and describes types.
Status
Category | Status |
---|
Version | |
Dependencies | |
Dev dependencies | |
Build | |
License | |
Installation
$ npm install typedescriptor
Quick Start
First you need to add a reference to typedescriptor to your application:
const Type = require('typedescriptor');
Then, to identify a value's type, call the static of
function and hand over the value:
const type = Type.of('the native web');
console.log(type);
The types array
, boolean
, function
, null
, number
, object
, string
, symbol
and undefined
are supported.
Getting detailed type descriptions
To get a detailed type descriptor object, call the static from
function and hand over the value:
const typeDescriptor = Type.from('the native web');
console.log(typeDescriptor);
Running the build
To build this module use roboter.
$ npx roboter