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

parsel-ts

v1.0.7

Published

Port of Parsel-js to TypeScript

Downloads

11

Readme

parsel-ts

GitHub license Issues Build Status Coverage Status Code Size Weekly downloads

Summary

TypeScrpit port of the awesome library made by Lea Verou

You can find the original project here

Reason to do it is to learn more about CSS and its grammar but also to provide typings to another project I'm woring on and add some tweaks and fixes.

The idea is to remain consistent with the current API which you can read in the official website.

Release notes

[1.0.7]

  • Fix tokenization of pseudo-elements with arugments. See original issue 48

[1.0.6]

  • Fix types for universal selector token.

[1.0.5]

  • Fix for universal selector. See original issues 42 43 & 44
  • Add universal token type

[1.0.4]

  • Improved token types and export them.

[1.0.3]

  • Fix bad reference to TypeScript definition files.

[1.0.2]

  • Fix for attribute values trimmed if ending with i/s (case sensitive flags). See this issue

[1.0.1]

[1.0.0]

  • 1st version with parse, tokenize, specificity, specificityToNumber and walk APIs