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

moggie

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moggie - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

index.js
'use strict'
const path = require('path')
const meow = require('meow')
const readPkgUp = require('read-pkg-up')
// borrowed from meow, to prevent referencing moggies package.json
// prevent caching of this module so module.parent is always accurate
delete require.cache[__filename]
const parentDir = path.dirname(module.parent.filename)
module.exports = function moggie(opts, cli) {
opts = Object.assign({
argv: process.argv.slice(2),
help: false,
minimistOptions: {}
minimistOptions: {},
pkg: readPkgUp.sync({ // borrowed from meow, to prevent referencing moggies package.json
cwd: parentDir,
normalize: false
}).pkg
}, opts)

@@ -10,0 +21,0 @@

5

package.json
{
"name": "moggie",
"version": "1.0.1",
"version": "1.0.2",
"description": "moggie wraps a lot meow to support subcommands.",

@@ -17,3 +17,4 @@ "main": "index.js",

"loud-rejection": "^1.6.0",
"meow": "^3.7.0"
"meow": "^3.7.0",
"read-pkg-up": "^2.0.0"
},

@@ -20,0 +21,0 @@ "devDependencies": {

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