New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

croc

Package Overview
Dependencies
Maintainers
2
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croc - npm Package Compare versions

Comparing version 0.0.17 to 0.0.18

41

bin/croc-cli.js
#!/usr/bin/env node
var doc = '' +
'Usage: \n' +
' croc [options] ls [<package>...] \n' +
' croc [options] deps [<package>...] \n' +
' croc [options] exec CMD [<package>...] \n' +
' croc [options] pexec CMD [<package>...] \n' +
' croc [options] link \n' +
' croc [options] (install | test | publish) [<package> ..] \n' +
' \n' +
'Options: \n' +
' -h, --help Show this screen. \n' +
' -v, --version Show version. \n' +
' --json Show information in JSON format. \n' +
' -p, --predecessors Include projects depending on the packages. \n' +
' -x, --strict Dependencies must statisfy version (semver) \n' +
' -c, --changed Show only projects that is changed. \n' +
' -s, --since=SHA Commit to diff against [default: master] \n'
var doc = [
'Usage:',
' croc [options] ls [<package>...]',
' croc [options] deps [<package>...]',
' croc [options] exec CMD [<package>...]',
' croc [options] pexec CMD [<package>...]',
' croc [options] link',
' croc [options] (install | test | publish) [<package> ..]',
'',
'Options:',
' -h, --help Show this screen.',
' -v, --version Show version.',
' --json Show information in JSON format.',
' --dot Show information in DOT format.',
' -p, --predecessors Include projects depending on the packages.',
' -x, --strict Dependencies must statisfy version (semver)',
' -c, --changed Show only projects that is changed.',
' -s, --since=SHA Commit to diff against [default: master]'
].join('\n')

@@ -23,2 +25,3 @@ var docopt = require('docopt').docopt

var dotWriter = require('croc-dag-dot')
var deps = require('croc-deps')

@@ -50,2 +53,4 @@ var link = require('croc-link')

printer.packages(pkgs)
} else if (args['--dot']) {
console.log(dotWriter(pkgs))
} else {

@@ -57,2 +62,4 @@ printer.packagesTable(pkgs)

printer.dependencies(pkgs)
} else if (args['--dot']) {
console.log(dotWriter(pkgs))
} else {

@@ -59,0 +66,0 @@ printer.dependenciesTable(pkgs)

{
"name": "croc",
"version": "0.0.17",
"version": "0.0.18",
"description": "monolithic repository manager",

@@ -25,2 +25,3 @@ "bin": {

"croc-deps": "~0.0.2",
"croc-dag-dot": "~0.0.1",
"croc-exec": "~0.0.2",

@@ -27,0 +28,0 @@ "croc-git": "~0.0.1",

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