pc__search_id_in_css

0.0.1 • Public • Published

Search id in CSS

This is plugin for nmp-package "Post-Compression".
He's searching for the value of "id" in the CSS code.

An example of using:

var searchIdInCSS = require("pc__search_id_in_css"),
    uniqueNames = {};
 
gulp.src("./*.css")
    .pipe(postCompression.search([
        searchIdInCSS()
    ], uniqueNames));

Where:

  • uniqueNames - an object of type JSON with rules replace the long words to short words.

An example of CSS code:

#someIdA,
#someIdA #someIdB {
    ...
}

An example of a result searching:

{
    "someIdA": 2,
    "someIdB": 1
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    1

Package Sidebar

Install

npm i pc__search_id_in_css

Weekly Downloads

1

Version

0.0.1

License

none

Last publish

Collaborators

  • bakhirev