Socket
Socket
Sign inDemoInstall

mongoose-repl

Package Overview
Dependencies
13
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 0.1.3

26

lib-js/cli.js

@@ -31,22 +31,18 @@ // Generated by CoffeeScript 1.6.3

var argv, _ref;
argv = optimist.usage('mongoose [options] <mongo url>').options({
schemas: {
alias: '-s',
describe: 'Path to a module that exports schema definitions'
},
host: {
alias: '-h',
describe: 'Host to connect to'
},
version: {
alias: '-v',
describe: 'List version'
}
argv = optimist.usage('mongoose [options] <mongo url>').options('schemas', {
alias: 's',
describe: 'Path to a module that exports schema definitions'
}).options('host', {
alias: 'h',
describe: 'Host to connect to'
}).options('version', {
alias: 'v',
describe: 'List version'
}).argv;
if (argv.v) {
if (argv.version) {
return console.log(require("" + __dirname + "/../package.json").version);
} else {
return repl.run(schemas(argv.s), mongo_uri(argv.h, (_ref = argv._) != null ? _ref[0] : void 0));
return repl.run(schemas(argv.schemas), mongo_uri(argv.host, (_ref = argv._) != null ? _ref[0] : void 0));
}
}
};
{
"name": "mongoose-repl",
"version": "0.1.2",
"version": "0.1.3",
"description": "A Mongo REPL with the full power of Mongoose",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc