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 🙏

© 2025 – Pkg Stats / Ryan Hefner

@wc-toolkit/cem-utilities

v1.5.4

Published

A set of tools for retrieving and transforming data from the Custom Elements Manifest

Readme

workbench with tools, html, css, javascript, and object logos

CEM Utilities

These are a set of tools of retrieving and transforming data from the Custom Elements Manifest.

The following docs serve as a quick reference guide to the features of the library. To find out more about these tools, be sure to check out the official docs.

CEM Utility Functions

You can find more details on these functions here.

  • getAllComponents - Gets a list of all components from a Custom Elements Manifest object
  • getComponentByClassName - Gets a component from a CEM object based on the class name
  • getComponentByTagName - Gets a component from a CEM object based on the tag name
  • getComponentPublicProperties - Gets a list of public properties from a CEM component
  • getComponentPublicMethods - Get all public methods for a component
  • getComponentEventsWithType - Get all events for a component with the complete event type
  • getCustomEventDetailTypes - Gets a list of event detail types for a given component.

Deep Merge

You can find more details on these functions here.

  • deepMerge - a simple utility for merging two objects together.

Component Descriptions

You can find more details on these functions here.

  • getComponentDetailsTemplate - returns a formatted string with the details of the various APIs of a custom element.
  • getMainComponentDescription - returns the component's primary description
  • getAttrsAndProps - returns an array of AttributeAndProperty objects that contain the attributes and public properties (including those not associated with an attribute) for a component.
  • getPropertyOnlyFields - returns a list of properties that do not have a corresponding attribute.
  • getMemberDescription - returns a description for a member of a component with any relevant deprecation information.

String Utilities

You can find more details on these functions here.

  • removeQuotes - removes single or double quotes that wrap a string
  • toKebabCase - converts a string to kebab-case.
  • toSentenceCase - converts a string to sentence-case.
  • toPascalCase - converts a string to pascal-case.
  • toCamelCase - converts a string to camel-case.