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

babbybel

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

babbybel

Runtime transpiller for to add Harmony modules

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Babbybel

Greenkeeper badge Quality Gate

Runtime transpiler for harmony modules support

Why

  • Add support of harmony modules in node 6
  • Kept source line numbers
  • Kept symbol names
  • Lighter than babel

Usage

Install

npm install --save babbybel

Within application

Before any use of a source file with import/export

require('babbybel')

With Mocha

Add to your mocha command line:

--compilers js:babbybel

Supported syntax

  • default import
import theDefault from 'my-module'
  • wildcard import
import * as allTheStuff from 'my-module'
  • sparse import
import {feature1, faeture2 as feature2} from 'my-module'
  • mix of import default with feature
import defaultExport, {export1, export2}
import {export1, export2}, defaultExport
  • default export
export default function myDefault = () => 'some thing'
  • export
export const myDefault = () => 'some thing'

Not yet supported syntax

  • multi line import / export

FAQs

Package last updated on 21 Jun 2017

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