@vanaaron/styled-components-auditor

0.1.5 • Public • Published

Styled-Components Auditor

wip project to help audit projects for uses of styled.XXX and styled(xxx) to help find code-duplication and refactoring opportunities.

Usage

$ ./node_modules/@vanaaron/styled-components-auditor/build/scan.js [root-directory]

Root directory defaults to ./src

Example Output

2 files scanned
Native elements restyled: 6
Custom elements restyled: 2
Details:
  div: 3
  Button: 2
  h1: 1
  h2: 1
  button: 1

Try it yourself

Just clone the repo and run:

$ yarn example

Package Sidebar

Install

npm i @vanaaron/styled-components-auditor

Weekly Downloads

1

Version

0.1.5

License

MIT

Unpacked Size

11.6 kB

Total Files

10

Last publish

Collaborators

  • vanaaron