$ npm install sails-hook-helpers
Sails JS hook to load files from the api/helpers
folder and provide them as machines available under sails.helpers
.
npm install sails-hook-helpers
requires at least sails >= 0.12
Create an api/actions
helpers, then add Javascript files (ending in .js
) in that folder or in subfolders.
© 2010 - cnpmjs.org x YWFE | Home | YWFE