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

babel-features

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-features - npm Package Compare versions

Comparing version 2.0.0-beta to 2.0.0

.npmignore

26

package.json
{
"name": "babel-features",
"version": "2.0.0-beta",
"version": "2.0.0",
"description": "Test babel features, can be used to generate babel options for specific compilation targets",
"main": "index.js",
"scripts": {
"test": "node test"
"prepublish": "node build",
"test": "node test",
"test-es2015": "BABEL_DISABLE_CACHE=1 babel-node --presets es2015 test",
"test-features": "BABEL_DISABLE_CACHE=1 babel-node --presets features test",
"test-generator": "BABEL_DISABLE_CACHE=1 babel-node test -w transform-async-to-generator,transform-es2015-generator-return",
"test-function-name": "BABEL_DISABLE_CACHE=1 babel-node --plugins transform-es2015-function-name test"
},

@@ -16,5 +21,2 @@ "repository": {

],
"peerDependencies": {
"babel-core": "6.x"
},
"author": "HE Shi-Jun <johnhax@gmail.com>",

@@ -25,3 +27,15 @@ "license": "ISC",

},
"homepage": "https://github.com/hax/babel-features#readme"
"homepage": "https://github.com/hax/babel-features#readme",
"devDependencies": {
"babel-cli": "^6.4.5",
"babel-plugin-syntax-function-sent": "^6.8.0",
"babel-plugin-transform-es2015-generator-return": "^1.0.1",
"babel-polyfill": "^6.9.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-features": "^2.0.2",
"babel-preset-stage-0": "^6.5.0"
},
"dependencies": {
"js-yaml": "^3.6.1"
}
}

@@ -5,3 +5,3 @@ # babel-features

NOTE: The latest version (2.x) is for babel 6.x, for babel 5.x please use version 1.x
NOTE: The latest version (2.x) is for babel 6.x, for babel 5.x please use [version 1.x](https://github.com/hax/babel-features/tree/1.x)

@@ -22,3 +22,3 @@ ## Install

// { 'es3-member-expression-literals': true,
// 'es3-property-Literals': true,
// 'es3-property-literals': true,
// 'es5-property-mutators': true,

@@ -47,2 +47,5 @@ // 'es2015-arrow-functions': true,

### Use babel preset
See https://github.com/ariporad/babel-preset-features
### Use babel register

@@ -49,0 +52,0 @@ ```js

'use strict'
var f = require('./')
var f = require('./lib')
console.log('Node.js:', process.versions.node)
console.log('V8:', process.versions.v8)
console.log()
console.log('babel features test result:')
console.log(f.test())
console.log(f.options())
console.log()
console.log('recommended plugins:')
console.log(f.options().plugins)
console.log()
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