Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
gulp-dogen
Advanced tools
dogen is meant to be the scaffold-on-the-fly tool. Creating templates of files & directories of files for scaffolding should be easy. Sometimes, there's a need to copy & paste & change group of files (aka Modules). Currently, tools like yeoman provide impressive scaffold utilities, but sometimes there's a need to update the generators according to your project's guidelines - and that's not possible with yeoman. You're relied on the generator's author or creating your own. That's why I created dogen.
Be The Master of you own generators.
$ npm install --save-dev gulp-dogen
var gulp = require('gulp');
var dogen = require('gulp-dogen');
dogen.config({
templatesPath: 'gulp/templates',
gulp: gulp
});
// This will create this gulp task as:
// gulp dogen --endpoint the-name-to-be-scaffolded
dogen.task('endpoint', 'src/server/api/');
dogen.task('ngmodule', 'src/client/app/');
dogen.task('ngservice', 'src/client/common/services/');
Then in terminal, you can start using this gulp task:
gulp dogen --endpoint guitars
This task will do the following:
Sometimes, a sub destination path is required under the destination that was configured in the task function.
The dogen shell task can have a 2nd argument, "path" which will be concatenated as a suffix to the destination value of the task.
The following task:
gulp dogen --endpoint guitars --path music
places the new generated files/directories at: src/client/api/music.
Please note: the path value can be any nested path including several directories.
The examples directory includes a template of endpoint.
dogen relies on 2 simple variables:
The concept of simplicity in dogen is that you should put the name-of-flag anywhere in the file's & directories names and contents - so it will be replaced with the value of the-name-to-be-scaffolded.
dogen task method return a gulp task that can be used like a standard gulp task.
gulp dogen --list
displays all the localy available generators in the console.
MIT © orizens
FAQs
a fast & easy scaffold cli for any development (based on gulp)
The npm package gulp-dogen receives a total of 20 weekly downloads. As such, gulp-dogen popularity was classified as not popular.
We found that gulp-dogen 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
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.