SkillAgentSearch skills...

Mine

Miner digs into a javascript file looking for require calls. Used to statically extract common js dependencies.

Install / Use

/learn @creationix/Mine
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

mine.js

The mine script accepts js source and returns all the require call locations as well as the target string. This is a submodule of js-linker and my-filters.

var mine = require('js-linker/mine.js');
var fs = require('fs');
var code = fs.readFileSync("test.js");
var deps = mine(code);
View on GitHub
GitHub Stars17
CategoryDevelopment
Updated2y ago
Forks9

Languages

JavaScript

Security Score

60/100

Audited on Sep 8, 2023

No findings