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

es6-comprehensions

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

es6-comprehensions - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

examples/basic_transformed.js

18

package.json
{
"name": "es6-comprehensions",
"version": "0.1.3",
"description": "Array comprehensions compiled to ES5.",
"main": "index.js",
"version": "0.2.0",
"description": "Transforms ES6 Array Comprehensions to ES5 compliant equivalent.",
"main": "src/index.js",
"bin": "bin/es6-comprehensions",
"scripts": {
"test": "mocha --recursive --reporter spec --timeout 500 test"
"test": "mocha --recursive --reporter spec test"
},
"dependencies": {
"esprima": "git://github.com/ariya/esprima.git#harmony",
"recast": "~0.4.24",
"through": "~2.3.4"
"through": "~2.3.4",
"recast": "~0.5.16",
"yargs": "~1.2.1",
"through2": "~0.4.1"
},
"devDependencies": {
"mocha": "~1.14.0",
"expect.js": "~0.2.0"
"mocha": "~1.18.0",
"expect.js": "~0.3.1"
},

@@ -19,0 +21,0 @@ "keywords": [

@@ -15,4 +15,4 @@ # es6-comprehensions

for (var i_0 = 0, arr_0 = [1,2,3,4,5], len_0 = arr_0.length, x; i_0 < len_0; i_0++) {
x = arr_0[i_0];
for (var $_i0 = 0, $_arr0 = [1,2,3,4,5], $_len0 = $_arr0.length, x; $_i0 < $_len0; $_i0++) {
x = $_arr0[$_i0];

@@ -44,6 +44,6 @@ if (x > 2) {

## TODO
## Todo
* Consider replacing plain `for` loop with `forEach` method. It will result in more compact code,
* Consider migration to escodegen.
* ~~Consider migration to escodegen.~~ Removed in order to follow up [esnext's](https://github.com/square/esnext) dependencies.

@@ -58,4 +58,10 @@ ## Development

## Changelog
### v0.2.0
* Changed API to be compliant with [esnext's](https://github.com/square/esnext) requirements.
## License
BSD

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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