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

babel-plugin-type-assertion

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-type-assertion

A babel plugin for runtime assertion

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

babel-plugin-type-assertion

An babel transformer plugin for rtts_assert, a run-time type assertion library for JavaScript.

  • Inject runtime type assertions based on flow types.
  • Can be turned off on production build. (Just exclude from babel's plugins option.)

Installation

npm install -S rtts_assert babel-core babel-plugin-type-assertion

Usage

You need to transpile also rtts_assert's ES6 code.

Require hook:

require('babel-core/register')({
  ignore: /node_modules\/(?!rtts_assert)/,
  plugins: ['type-assertion']
});

require('your-module');

Webpack:

Working example config file

Keywords

FAQs

Package last updated on 01 Sep 2015

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