You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
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
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