Security News
JSR Working Group Kicks Off with Ambitious Roadmap and Plans for Open Governance
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
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,212,817 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
At its inaugural meeting, the JSR Working Group outlined plans for an open governance model and a roadmap to enhance JavaScript package management.
Security News
Research
An advanced npm supply chain attack is leveraging Ethereum smart contracts for decentralized, persistent malware control, evading traditional defenses.
Security News
Research
Attackers are impersonating Sindre Sorhus on npm with a fake 'chalk-node' package containing a malicious backdoor to compromise developers' projects.