Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

css-modules-conversion-analysis

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

css-modules-conversion-analysis

How close are you?

  • 0.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Crudely analyse your bad css to modular css

Run

Globally: cmca

Module: node_modules/.bin/cmca

Alternativly, reference in your package.json:

"scripts": {
  "analyse": "cmca"
},
Options
  • -p: path of the folder to check. default: ..
  • -o: the extension for old css. default: .scss.
  • -m: the extension for modular css. default: .mcss.
  • -i: detect inline styles. default: false.
  • -v: verbose output, includes file paths. default: false.

example cmca -p packages/modal -o .less -m .css -i

Output

  • total: Total number of React components, detected via react.createclass(.
  • none: No reference to old, modular or inline.
  • inline: Inline css, detected via style={.
  • notModular: old files.
  • modular: modular files.
  • combination: more than one of old, modular or inline.
total  none  inline  notModular  modular  combination
-----  ----  ------  ----------  -------  -----------
162    66    16      57          22       1

You're 22% of the way there!

i did say it was crude, didn't i?

FAQs

Package last updated on 01 Sep 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc