
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@zebrajaeger/gulp-simple-env
Advanced tools
I.E. we define two environments: 'foo' and 'bar'.
const e = require('@zebrajaeger/gulp-simple-env')({
env: ['foo', 'bar']
});
You can define as much environments as you want.
Hint:
For js-conform naming, the env-names are camel-cased. 'my-great-env' becomes to isMyGreatEnv(...). The command line name is unchanged: gulp --my-great-env For the replacement strategy, take a look at https://www.npmjs.com/package/camelcase
gulp --foo
gulp --bar
gulp --foo --bar
e.isFoo(): true or false
e.isNotFoo(): true or false
e.isBar(): true or false
e.isNotBar(): true or false
gulp.src(...).pipe( e.isFoo(...) ).dest(...);
gulp.src(...).pipe( e.isNotFoo(...) ).dest(...);
gulp.src(...).pipe( e.isBar(...) ).dest(...);
gulp.src(...).pipe( e.isNotBar(...) ).dest(...);
As an alternative you can provide a trueStream and a falseStream
.pipe( e.isFoo(uglify(), prettify()) )
const g = require('gulp');
const e = require('@zebrajaeger/gulp-simple-env')({env: ['foo', 'bar']});
const print = require('gulp-print').default;
g.task('default', cb => {
return g
.src('*.js')
.pipe(e.isFoo(print()))
});
FAQs
Simple Environment Plugin for Gulp
The npm package @zebrajaeger/gulp-simple-env receives a total of 0 weekly downloads. As such, @zebrajaeger/gulp-simple-env popularity was classified as not popular.
We found that @zebrajaeger/gulp-simple-env 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.