npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

css-doc-parse

v2.0.2

Published

This is an generator of docs for css in Polymer-Cells

Downloads

1

Readme

CSS-DOC-PARSE

This project allow generate MarkDown documentation for Polymer styles components

Getting Started

  • Clone the repository
  • Install NPM dependencies
  • npm test for run unit testing (Using Jest)

How to use

  • npm install --global css-doc-parse`
  • Exec css-doc-parse <filename> --type <type>

Types

  • lite - Only variables and mixins
  • full - All the styles founded [default]

Prerequisites

  • Node and NPM
  • Supports ES6 Lint

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Methods

buildMarkDownTable

Generate a markdown table from Polymer styles file

Parameters

  • Name string of file to read
  • Type string of format to generate the table

getCSS

Get the styles from a file readed from command line

Parameters

Returns Array<object> Array with all objects generates from the read file

formatCSSObject

Generates an array in an specific format

Parameters

  • objectCss object? Getit from convertion of the html or css string.

Returns Array<object> An array with all objects from selector object,

getStylesFromStyleTag

Get the styles inside tag from a string with the basic structure of Polymer elements

Parameters

  • htmlString string? Any string with css code inside of tag

Returns string The string returned have all css code

cssToObject

Get all rules of css in a string and make an object for each selector adding him properties like subproperties of each selector

Parameters

  • cssString string? Any string with html code inside of the basic structure of Polymer components or css file

Returns object The object of css code

Acknowledgments

  • The main idea of this project is based in M.O.S.T. a tool created by Kus Camara Repo and is created because resolve the pain of style documentation.

Authors

  • Alfonso Ríos - Initial work - malforime
  • Aldo Aldaco - Testing and docs - doco