Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
gulp-traceur
Advanced tools
Deprecated as Traceur is unmaintained. Check out gulp-babel
instead.
Traceur
is a JavaScript.next to JavaScript-of-today compiler
Issues with the output should be reported on the Traceur
issue tracker.
$ npm install --save-dev gulp-traceur
const gulp = require('gulp');
const traceur = require('gulp-traceur');
gulp.task('default', () =>
gulp.src('src/app.js')
.pipe(traceur())
.pipe(gulp.dest('dist'))
);
See the Traceur
options.
Type: string
Default: commonjs
Values: See traceur modules
option
By default, gulp-traceur
treats all files as modules. This allows use of the export
, module
and import
syntax. In this way the transformer can be used to compile ES2015 for AMD or Node.js environments.
Absolute path to the Traceur runtime.js file.
Use gulp-sourcemaps like this:
const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const traceur = require('gulp-traceur');
const concat = require('gulp-concat');
gulp.task('default', () =>
gulp.src('src/*.js')
.pipe(sourcemaps.init())
.pipe(traceur())
.pipe(concat('all.js'))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest('dist'))
);
MIT © Sindre Sorhus
FAQs
Traceur is a JavaScript.next to JavaScript-of-today compiler
We found that gulp-traceur 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
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.