New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

express-babel

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

express-babel

Simple middleware to transform ES2015 code at runtime

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

express-babel

Simple middleware that translates ES2015 JavaScript files on the fly and serves them up. For anything more complicated, you're probably better off with something like webpack.

NOTE: Uses babel6

usage

var express = require('express');
var app = express();
var expressBabel = require('express-babel');

app.use('/public/js', expressBabel('/path/to/jsfiles', { 
	presets: [ 'stage-0', 'es2015' ]
}));

// GET /public/js/pineapple.js > returns Babelified /path/to/jsfiles/pineapple.js

todo

Caching and other features

FAQs

Package last updated on 12 Sep 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

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