Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
babel-preset-node-module
Advanced tools
Readme
This package includes the Babel preset used by Modern Node. It includes:
class { handleClick = () => { } }
)let n = { x, y, ...z };
)After installing babel, you can install this package as a dependency:
npm install --save-dev babel-preset-node-module
And configure Babel to use it by editing .babelrc
:
{
"presets": ["node-module"]
}
targets
- an object of browsers/environment versions to support.browsers
(array/string) - an query to select browsers (ex: last 2 versions, > 5%).See babel-preset-env for details description of these options.
It defaults to current node version in development and test environment. For production babel-preset-latest is used.
loose
(boolean) - Enable "loose" transformationsmodules
- Enable transformation of ES6 module syntax to another module type (Enabled by default to "commonjs"
).
false
to not transform modules, or one of ["amd", "umd", "systemjs", "commonjs"]
.debug
(boolean) - console.log
out the targets and plugins beingExample:
{
"presets": [
["node-module", {
"targets": {
"chrome": 52,
"browsers": "last 2 safari versions"
},
"loose": true,
"modules": false
}]
]
}
FAQs
Babel preset used by Modern Node
The npm package babel-preset-node-module receives a total of 10 weekly downloads. As such, babel-preset-node-module popularity was classified as not popular.
We found that babel-preset-node-module 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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.