Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
amdetective
Advanced tools
Find all calls to require()
in AMD modules.
This module uses code extracted from r.js rather than trying to write it's own version of r.js parsing. It depends on esprima (but not r.js).
npm install amdetective
require(['module1', 'path/to/module2'], function(a, b){
// ...
});
define(function(require) {
var a = require('some/file'),
b = require('json!foo/bar');
// ...
});
This example file accepts a target path from command line so you can use it to inspect your own files as well:
var fs = require('fs'),
amdetective = require('amdetective');
console.log('Reading file from first argument: ' + process.argv[2]);
console.log(amdetective(fs.readFileSync(process.argv[2]).toString()));
Running: node detect.js simple.js
Output:
Reading file from first argument: simple.js
[ 'module1', 'path/to/module2' ]
Running: node detect.js simple2.js
Output:
Reading file from first argument: simple2.js
[ 'require', 'some/file', 'json!foo/bar' ]
Given some source body src
, return an array of all the require()
call arguments detected by AMD/r.js.
The options parameter opts
is passed along to parse.recurse()
.
BSD
FAQs
Like node-detective, but for AMD/r.js files. Finds all calls to `require()` in AMD modules by walking the AST.
We found that amdetective demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.