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

@tertium/js

v0.16.0

Published

Shared JS configs and types.

Downloads

29

Readme

@tertium/js

Shared JavaScript utilities, release scripts and TypeScript types you can reuse across projects.

Table of contents

  • Installation
  • Usage
    • TypeScript types
    • Release scripts
    • Cleaning build folders
  • Contributing

Installation

Install as a dependency or devDependency in your project:

npm install @tertium/js --save-dev

Usage

TypeScript types

This package exports shared TypeScript types you can import directly:

// Import multiple types
import { ApiResponse, ApiRequest, Repo, Option, Ref } from '@tertium/js';

// Or import a single type
import { ApiResponse } from '@tertium/js';

Release scripts

This package ships Node.js release helper scripts in scripts/. You can invoke them from your project's package.json by referencing the script file in node_modules:

{
  "scripts": {
    "release:patch": "node node_modules/@tertium/js/scripts/release.js patch",
    "release:minor": "node node_modules/@tertium/js/scripts/release.js minor",
    "release:major": "node node_modules/@tertium/js/scripts/release.js major"
  }
}

Briefly:

  • Patch release: bump from main, rebase develop.
  • Minor/Major releases: bump from develop, merge to main.

(See the script comments in scripts/release.js for full workflows.)

Cleaning build folders

This package provides a small cross-platform cleaner at scripts/clean.js that removes folders such as dist.

Notes:

  • The script resolves paths from the current working directory and will skip targets that don't exist.
  • It prefers fs.rmSync (Node 14.14+) and falls back to a small recursive remover for older Node versions.
  • The script logs removed and skipped paths and sets a non-zero exit code on failure.

Using this script in your own repository

If you consume @tertium/js from another project, reference the script directly in your package.json scripts:

{
  "scripts": {
    "clean": "node node_modules/@tertium/js/scripts/clean.js",
    "clean:dist": "node node_modules/@tertium/js/scripts/clean.js dist"
  }
}

Then run from your project:

# Remove default (./dist)
npm run clean

# Pass multiple targets
npm run clean -- dist build .cache

# Run the dist shortcut
npm run clean:dist

Notes for consumers:

  • Ensure @tertium/js is installed (as a dependency or devDependency) so the node_modules path exists.
  • If you'd prefer a CLI-style experience (invokable via npx/pnpm dlx), we can add a bin entry to this package — tell me if you want that and I will add it and update README usage.

Contributing

Contributions, issues and pull requests are welcome. If you add features that change the exported types or scripts, please update the documentation here.