![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
silk-babel-run
Advanced tools
This folder contains various pieces to make using Babel with our Babel preset easier, without the need for Babel configurations in every module.
You can run scripts written in ES6 directly from the command line:
$ ../babel-run/babel-node my_script.js
The babel-node
wrapper modifies CLI arguments as if node were
executing the script directly. If you need to run the script without
altered arguments (for e.g. cluster.fork()
expects unaltered
arguments) you may want to use babel-node-allargs
wrapper:
$ ../babel-run/babel-node-allargs my_script.js
Both babel-node
and babel-node-allargs
can be used in a shebang
line so you can directly create executable scripts written in ES6:
#! /usr/bin/env ../pub/babel-run/babel-node
console.log(`This is ES6 Code`);
If you need to do additional things besides Babelifying the code, you
may want to write your own wrapper script rather than using
babel-node
or babel-node-allargs
.
#!/usr/bin/env node
'use strict';
require('../babel-run/node')();
doAdditionalStuff();
require('./myscript');
For example you can use the node.js
file to setup a mocha
environment, by adding a your-module/test/mocha.opts
file:
--require ../../babel-run/mocha
Alternatively, you can refer to a dedicated JS module to set up the node environment if you wish to do additional stuff:
--require test/setup.js
test/setup.js
would look similar to a CLI wrapper script:
require('../../babel-run/node')();
doAdditionalStuff();
FAQs
Misc utilities for running babel / mocha
The npm package silk-babel-run receives a total of 3 weekly downloads. As such, silk-babel-run popularity was classified as not popular.
We found that silk-babel-run demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.