Socket
Socket
Sign inDemoInstall

detective-postcss

Package Overview
Dependencies
16
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    detective-postcss

Detective to find dependents of CSS (PostCSS dialect)


Version published
Weekly downloads
1.5M
increased by8.28%
Maintainers
1
Install size
1.76 MB
Created
Weekly downloads
 

Readme

Source

node-detective-postcss

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-scsss.

Usage

import fs from 'fs';
import detective from 'detective-postcss';

const content = fs.readFileSync('styles.css', 'utf8');

// list of imported file names (ex: 'bla.css', 'foo.css', etc.)
const dependencies = detective(content);

License

Apache 2.0

FAQs

Last updated on 12 Apr 2018

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc