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.
detective-postcss
Advanced tools
Find the dependencies of a CSS file (PostCSS dialect)
Supports @import
and @value ... from
.
npm install postcss detective-postcss
It's the CSS (PostCSS dialect) counterpart to detective, detective-amd, detective-es6, detective-sass, detective-scss.
const fs = require('fs');
const detective = require('detective-postcss');
const content = fs.readFileSync('styles.css', 'utf8');
// list of imported file names (ex: 'bla.css', 'foo.css', etc.)
const dependencies = detective(content);
// or to also detect any url() references to images, fonts, etc.
const allDependencies = detective(content, { url: true });
package.json
to a meaningful version for the changes since the last release (we follow semver).main
branch. It will do a dry-run publish (not actually publish the new version).vX.X.X
(where X.X.X
is the new to-be-releases semver of the package - please add as many detail as possible to the release description.Publish
the release. Publishing will trigger the npm-publish workflow on the tag and do the actual publish to npm.FAQs
Detective to find dependents of CSS (PostCSS dialect)
The npm package detective-postcss receives a total of 1,246,042 weekly downloads. As such, detective-postcss popularity was classified as popular.
We found that detective-postcss demonstrated a healthy version release cadence and project activity because the last version was released less than 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.