Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
detective-postcss
Advanced tools
Find the dependencies of a CSS file (postCSS dialects)
Supports @import
and @value ... from
.
npm install --save 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 });
MIT
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 617,922 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 0 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
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.