babelfy

1.1.0 • Public • Published

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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.0
    9
    • latest

Version History

Package Sidebar

Install

npm i babelfy

Weekly Downloads

14

Version

1.1.0

License

MIT

Last publish

Collaborators

  • ianldgs