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

@pipli/core

v0.0.6

Published

This package contains utility functions and modules that that can be used across different services and projects.

Readme

Core

core is a Node.js package that contains a collection of utility functions and tools that can be used across different services and projects. The goal of this package is to reduce code duplication by providing a common set of tools and utilities that can be easily shared between different services.

Installation

To use core package in your project, run:

npm i --save @pipli/core

Usage

To use core in your project, simply require it in your code:

import { capitalize } from 'core'

const myString = 'hello, world'
const capitalizedString = capitalize(myString)

console.log(capitalizedString) // Output: "Hello, world"

Publishing package

  1. First, make sure you're logged in to npm by running the following command in your terminal and entering your npm credentials when prompted:
  npm login
  1. Update the version number in your package.json file
  npm version <new-version>

Replace with the new version number (e.g. 1.0.1).

  1. Once you're logged in, you can build your package by running the following command in your package directory:
  npm run build

This will create a lib folder containing the compiled and bundled code for your package. Make sure to run npm run format and npm run lint before building the package to check for any eslint error.

  1. Now you're ready to publish your package to the npm registry. You can do this by running the following command:
  npm publish

That's it! Your package is now published and ready for others to use.

Documenting Utility Functions and classes with TypeDoc

TypeDoc provides a set of tags for documenting TypeScript code. Here's an example of how to use TypeDoc syntax to document a utility function:

/**
 * Capitalizes the first letter of a string.
 *
 * @param str - The input string to capitalize.
 * @returns The capitalized string.
 */
export function capitalize(str: string): string {
  return str.charAt(0).toUpperCase() + str.slice(1);
}

classes can be documented using the below syntax

export class Statistics {
  /**
   * Returns the average of two numbers.
   *
   * @remarks
   * This method is part of the {@link core-library#Statistics | Statistics subsystem}.
   *
   * @param x - The first input number
   * @param y - The second input number
   * @returns The arithmetic mean of `x` and `y`
   */
  public static getAverage(x: number, y: number): number {
    return (x + y) / 2.0;
  }
}

You can use the following command to generate documentation for the package

npm run doc:generate

This command generates documentation for the package and outputs it to the docs directory.