node package manager
We need your input. Help make JavaScript better: Take the 2017 JavaScript Ecosystem survey »



npm version Dependency Status

Needs at least Sails version 0.11.0 to work

Sails JS hook to activate ES6/7 Javascript code for your whole sails app, via


npm install sails-hook-6to5


Just lift your app as normal, and enjoy the future of Javascript today. To see what is possible, see:


By default, configuration lives in sails.config.6to5. The configuration key (6to5) can be changed by setting sails.config.hooks['sails-hook-6to5'].configKey.

Parameter Type Details
compile ((boolean)) Whether or not sails should compile/allow ES6/7 code. Defaults to true.

That’s it!