Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
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 918,659 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
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.