Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

strong-type

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strong-type

allows easy type enforcement for all JS types objects and classes. it is also extensible and provides simple to use type checks for your own custom classes and types

  • 0.0.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
42K
increased by13.28%
Maintainers
1
Weekly downloads
 
Created
Source

strong-type

Type checking module for anywhere javascript can run ES6 modules. This includes node, electron and the browsers.

strong-type allows easy type enforcement for all JS types objects and classes. it is also extensible and provides simple to use type checks for your own custom classes and types should you want to use them.

Documentation coming soon.

install npm i strong-type

check the examples run npm i in the root dir to make sure you get the devDependencies installed.

node example npm run nodeExample

browser example npm start then go to http://localhost:8000/example/web/index.html

Chrome, Opera, and Edge support all the types so all rows will be green

You will see some red rows in Firefox as it does not yet support all types. The unsupported types will throw type errors when checked/validated.

Keywords

FAQs

Package last updated on 19 Nov 2020

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc