Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
sails-hook-babelv7
Advanced tools
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 https://babeljs.io/.
npm install sails-hook-babel
Just lift your app as normal, and enjoy the future of Javascript today. To see what is possible, see: https://babeljs.io/docs/learn-es6/
By default, configuration lives in sails.config.babel
. The configuration key (babel
) can be changed by setting sails.config.hooks['sails-hook-babel'].configKey
.
Parameter | Type | Details |
---|---|---|
compile | ((boolean)) | Whether or not sails should compile future JS code. Defaults to true . |
polyfill | ((boolean)) | Whether or not use babel-polyfill . Defaults to false . |
presets | ((array)) | Which presets to transpile your code with. Defaults to es2015. |
Also you can use other Babel 6 options.
That’s it!
FAQs
Sails JS hook to activate babel 7 for the whole api folder
The npm package sails-hook-babelv7 receives a total of 0 weekly downloads. As such, sails-hook-babelv7 popularity was classified as not popular.
We found that sails-hook-babelv7 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.