Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
An object crawler/property search library that works on nearly all JavaScript platforms.
An object crawler/property search library that works on nearly all JavaScript platforms1.
Spotlight.js is part of the BestieJS "Best in Class" module collection. This means we promote solid browser/environment support, ES5 precedents, unit testing, and plenty of documentation.
The documentation for Spotlight.js can be viewed here: /docs/README.md
For a list of upcoming features, check out our roadmap.
In a browser:
<script src="spotlight.js"></script>
Via npm:
npm install spotlight
In Narwhal, Node.js, and RingoJS:
var spotlight = require('spotlight');
In Rhino:
load('spotlight.js');
In RequireJS:
require(['path/to/spotlight'], function(spotlight) {
spotlight.byKind('constructor');
});
Usage example:
// find all "length" properties
spotlight.byName('length');
// or find all "map" properties on jQuery
spotlight.byName('map', { 'object': jQuery, 'path': '$' });
// or all properties with `jQuery` objects
spotlight.byKind(jQuery);
// or all properties with `RegExp` values
spotlight.byKind('RegExp');
// or all properties with `null` values
spotlight.byKind('null');
// or all properties with `undefined` values
spotlight.byKind('undefined');
// or all constructors
spotlight.byKind('constructor');
// or all properties with the value `0`
spotlight.byValue(0);
// or all properties containing "oo" in their name
spotlight.custom(function(value, key) { return key.indexOf('oo') > -1; });
// or all properties with falsey values
spotlight.custom(function(value) { return !value; });
To clone this repository including all submodules, using git 1.6.5 or later:
git clone --recursive https://github.com/bestiejs/spotlight.js.git
cd spotlight.js
For older git versions, just use:
git clone https://github.com/bestiejs/spotlight.js.git
cd spotlight.js
git submodule update --init
Feel free to fork if you see possible improvements!
FAQs
An object crawler/property search library that works on nearly all JavaScript platforms.
The npm package spotlight receives a total of 22 weekly downloads. As such, spotlight popularity was classified as not popular.
We found that spotlight demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.