Socket
Socket
Sign inDemoInstall

detective-cjs

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detective-cjs - npm Package Compare versions

Comparing version 3.1.3 to 4.0.0

14

package.json
{
"name": "detective-cjs",
"version": "3.1.3",
"version": "4.0.0",
"description": "Get the dependencies of a CommonJS module by traversing its AST",

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

"mocha": "mocha",
"test": "npm run lint && npm run mocha"
"test": "npm run lint && npm run mocha",
"test:ci": "c8 npm run mocha"
},

@@ -35,12 +36,13 @@ "repository": {

"engines": {
"node": ">=6.0"
"node": ">=12"
},
"dependencies": {
"ast-module-types": "^3.0.0",
"node-source-walk": "^4.0.0"
"node-source-walk": "^5.0.0"
},
"devDependencies": {
"eslint": "^5.16.0",
"mocha": "^6.2.3"
"c8": "^7.11.0",
"eslint": "^8.10.0",
"mocha": "^9.2.1"
}
}

@@ -1,2 +0,2 @@

#### detective-cjs [![CI](https://github.com/dependents/node-detective-cjs/actions/workflows/ci.yml/badge.svg)](https://github.com/dependents/node-detective-cjs/actions/workflows/ci.yml) [![npm](https://img.shields.io/npm/v/detective-cjs)](https://www.npmjs.com/package/detective-cjs) [![npm](https://img.shields.io/npm/dm/detective-cjs)](https://www.npmjs.com/package/detective-cjs)
### detective-cjs [![CI](https://img.shields.io/github/workflow/status/dependents/node-detective-cjs/CI/main?label=CI&logo=github)](https://github.com/dependents/node-detective-cjs/actions/workflows/ci.yml?query=branch%3Amain) [![npm](https://img.shields.io/npm/v/detective-cjs)](https://www.npmjs.com/package/detective-cjs) [![npm](https://img.shields.io/npm/dm/detective-cjs)](https://www.npmjs.com/package/detective-cjs)

@@ -15,2 +15,3 @@ > Get the dependencies of a CommonJS module by traversing its AST

```js
const fs = require('fs');
const detective = require('detective-cjs');

@@ -17,0 +18,0 @@

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