Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@filemonger/cli

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@filemonger/cli - npm Package Compare versions

Comparing version 0.2.3 to 0.5.0

26

index.js
#!/usr/bin/env node
const { join } = require("path");
const { ensureDir } = require("fs-extra");
const yargs = require("yargs");
const argv = yargs
.option("src", {
alias: "s",
describe: "Source directory to pull files from",
type: "string"
})
.option("dest", {

@@ -17,5 +13,4 @@ alias: "d",

})
.demandOption(["src", "dest"]).argv;
.demandOption(["dest"]).argv;
const srcDir = argv.src;
const destDir = argv.dest;

@@ -25,11 +20,18 @@

console.log("Filemongering...");
console.time("Time");
mongerfile.run(srcDir, destDir, (err, files) => {
console.timeEnd("Time");
ensureDir(destDir, err => {
if (err) {
console.error(err);
process.exit(1);
return;
}
console.time("Filemonger");
mongerfile.run(destDir, err => {
console.timeEnd("Filemonger");
if (err) {
console.error(err);
process.exit(1);
}
});
});
{
"name": "@filemonger/cli",
"version": "0.2.3",
"version": "0.5.0",
"description": "Filemonger CLI",

@@ -5,0 +5,0 @@ "bin": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc