
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
babel-plugin-jsx-underscore
Advanced tools
Plugin for Babel which converts JSX to Underscore templates
This plugin produces Underscore Templates output of given JSX source. Currently For Babel 5
npm install babel-plugin-jsx-underscore
Basic usage look like this:
babel.transform(code, {
plugins: ['babel-plugin-jsx-underscore'],
blacklist: ['react']
});
or any other way described here.
There is some number of options, first and main option is captureScope
:
captureScope
[boolean] - when enabled plugin looks for current scope to find same variables as JSX source tags. For example, this code <div></div>
will produce { tag: 'div', ... }
when capture is disabled and { tag: ['div', div], ...}
when capture is enabled -- plugin captures variable for feature use by runtime.builtins
[Array] - only has effect when captureScope
is true
. This options allows number of built-ins tags so plugin won't need to look for when in the scope. Usage of this options assumes that renderer knows how to handle listed built-in tags. If this option is provided and used tag is not a built-in and it's not in the current scope when compilation error will be thrown.throwOnMissing
[boolean] - only has effect when captureScope
and builtins
options are used simultaneously. By default this is true
, setting it to false
means that plugin won't throw compilation error for missed tags, instead it will produce normal scope output and if variable is missing you will get an runtime error. <a class="anchor" href={"<%= data.href %>"}>
{"<%= data.content %>"}
</a>
function (data) {
var __t,
__p = '',
__j = Array.prototype.join,
print = function print() {
__p += __j.call(arguments, '');
};__p += '<a class=\'chemical-anchor\'href=\'' + ((__t = data.href) == null ? '' : __t) + '\'>' + ((__t = data.content) == null ? '' : __t) + '</a>';return __p;
};
FAQs
Plugin for Babel which converts JSX to Underscore templates
The npm package babel-plugin-jsx-underscore receives a total of 0 weekly downloads. As such, babel-plugin-jsx-underscore popularity was classified as not popular.
We found that babel-plugin-jsx-underscore 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.