Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
broccoli-es6-module-transpiler
Advanced tools
Transpiling to AMD:
var transpileES6 = require('broccoli-es6-module-transpiler');
var transpiledLib = transpileES6(lib, {
moduleName: function(filePath) {
return filePath.replace(/.js$/, '');
}
});
Transpiling to CommonJS:
var transpileES6 = require('broccoli-es6-module-transpiler');
var transpiledLib = transpileES6(lib, {
type: 'cjs'
});
transpileES6(inputTree, options)
options.type
{String}
The type of module to transpile to.
Possible values: amd
, cjs
, yui
or globals
.
Default: amd
.
options.moduleName
{Function, String, true
, null}
The module name that is passed to the transpiler for each file.
moduleName
is null
an anonymous module will be generated.moduleName
is a string it will be passed directly the transpiler for all files.moduleName
is a function it will be called with the path of the current file as its sole argument. The return value of the function will be passed to the transpiler.moduleName
is true
the filename will be used (after stripping the last three characters).Default: null
.
options.transpilerOptions
{Function, Object, null}
The options that are passed to the transpiler for each file.
transpilerOptions
is null
no options will be passed.transpilerOptions
is an object it will be passed directly the transpiler for all files.transpilerOptions
is a function it will be called with the path of the current file as its sole argument. The return value of the function will be passed to the transpiler.Default: null
.
FAQs
Broccoli plugin for Square's ES6 Module Transpiler
The npm package broccoli-es6-module-transpiler receives a total of 5 weekly downloads. As such, broccoli-es6-module-transpiler popularity was classified as not popular.
We found that broccoli-es6-module-transpiler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 open source maintainers 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.