1.1.0 • Published 10 years ago

babelfy v1.1.0

Weekly downloads
13
License
MIT
Repository
github
Last release
10 years ago

babelfy

Compile and execute your ES6 nodejs project to ES5. Based on babeljs.io

Features suported: https://babeljs.io/docs/learn-es2015/

Installing

$ sudo npm install -g babelfy

Using

for example, you have this structure:

/home/myuser/path/project

├── server.js
├── lib
│   ├── ultils.js
│   ├── main.js
│   ├── controllers
│   │   ├── users.js
│   │   ├── tasks.js
│   ├── models
│   │   ├── user.js
│   │   ├── task.js
├── node_modules/...

Run this command:

$ babelfy /home/myuser/path/project

And you will now have this structure:

/home/myuser/path/project

├── server.js
├── lib
│   ├── ultils.js
│   ├── main.js
│   ├── controllers
│   │   ├── users.js
│   │   ├── tasks.js
│   ├── models
│   │   ├── user.js
│   │   ├── task.js
├── node_modules/...
│
├── bin
│   ├── server.js
│   ├── lib
│   │   ├── ultils.js
│   │   ├── main.js
│   │   ├── controllers
│   │   │   ├── users.js
│   │   │   ├── tasks.js
│   │   ├── models
│   │   │   ├── user.js
│   │   │   ├── task.js
│   ├── node_modules/...

The folder bin will be created with all ES5 code.

1.1.0

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.2.0

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago