Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
exeggcute
Advanced tools
A node.js module to make executing shell cmds a breeze!
Weekly downloads
Readme
A node.js module to make executing shell cmds a breeze!
Use npm as usual to save the package to your dependencies:
npm install --save exeggcute
const exec = require('exeggcute').exec;
var dir = 'c:/code/';
var cmd = 'git clone https://github.com/styfle/exeggcute';
exec(cmd, dir);
const exec = require('exeggcute').exec;
var dir = '/code/';
var cmd = 'git clone https://github.com/styfle/exeggcute';
exec(cmd, dir);
import {exec} from 'exeggcute';
var dir = '/code/';
var cmd = 'git clone https://github.com/styfle/exeggcute';
exec(cmd, dir);
exeggcute
is named after the pokemon, Exeggcute. You can see more code/projects named after pokemon at repokemon.
I wanted to execute a chain of commands that reads nicely and not worry about syntax.
Below is an example that mirrors code from the originRepo
to the targetRepo
.
This is a hook that runs for each push of a branch or tag to the originRepo
and will then push that branch/tag to the targetRepo
.
hasDir(repoDir)
.then(exists => {
if (!exists) {
return exec(`git clone ${originRepo}`, baseDir)
.then(() => exec(`git remote add target ${targetRepo}`, repoDir))
}
return Promise.resolve(exists);
})
.then(() => exec(`git checkout ${branch}`, repoDir))
.then(() => exec(`git pull origin ${branch}`, repoDir))
.then(() => exec(`git push target ${branch}`, repoDir))
.then(() => exec(`git pull origin --tags`, repoDir))
.then(() => exec(`git push target --tags`, repoDir))
.catch((err) => console.error('Oh no! ', err));
FAQs
A node.js module to make executing shell cmds a breeze!
The npm package exeggcute receives a total of 68 weekly downloads. As such, exeggcute popularity was classified as not popular.
We found that exeggcute 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.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.