New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

smart-types

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

smart-types

A smarter way to check Javascript types.

latest
Source
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

Build Status Coverage Status

smart-types

A smarter type checker for Javascript. Smart types simplifies the tedious task of checking types in javascript.

Usage

smartTypes = require('smart-types');

smartTypes.isString('foo');
// => true

smartTypes.isNumber(10);
// => true

smartTypes.isNumber(NaN);
// => false

smartTypes.getType([]);
// => array

smartTypes.isOfType(new Error(), 'error');
// => true

Motivation

This package is designed to simplify [[Class]] type checking in javascript.

Installation

$ npm install -S start-types

API Reference

API reference can be found at https://github.com/jdpipkin/smart-types/blob/master/output.md

Tests

npm test

Contributors

Contributions are always welcome. Please make sure your code follows the existing project style and there are no linting errors. Please test and document your changes before making your pull request.

If you don't feel like going through the hassel feel free to create an issue and I'll do my best to solve your problems.

License

MIT

Keywords

javascript

FAQs

Package last updated on 25 Jun 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts