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 🙏

© 2026 – Pkg Stats / Ryan Hefner

that-build-library

v1.0.15

Published

A collection of common scripts for the build and deploy process

Readme

That Build Library

CircleCI

Overview

At That Dev Company we create and manage a whole bunch of projects which are generally built, packaged and deployed using the same set of techniques.

This library contains a collection of common scripts that help with those build and deploy processes

Installation

To install:-

yarn add that-build-library

Quick Example

An example use:-

import { BuildUtils } from 'that-build-library'

Promise.resolve()
    .then(() => BuildUtils.echo('Cleaning'))
    .then(() => BuildUtils.clean('dist'))
    
    .then(() => BuildUtils.echo('Compiling'))
    .then(() => BuildUtils.tsc())
    
    .catch(console.error)

Utilities

The following utility functions are available:-

clean (folder, leaveRoot)

Removes the contents of a folder

  • folder the folder to be cleaned
  • leaveRoot (optional) should the folder be left untouched (just the contents removed)

copy (source, destination, filename)

Copies a file or a folder

  • source the folder or file to be copied
  • destination the folder to be created/copied into
  • filename (optional) the filename of the new file (defaults to the name of the source file)

echo (message)

Logs a message to screen

  • message the message to be logged

exec (cmd, parameters)

Executes a command line program

  • cmd the command to be run
  • parameters a list of parameters to be passed

npmPublish (folder, packageProcessor)

Updates the version and publishes the project to NPM

  • folder the folder containing the distributable build
  • packageProcessor a function that will tidy up the package.json

prettierJS (include, excludes)

Automatically tidies the code (for JAVASCRIPT code)

  • include the root folder prettify
  • excludes an array of folders to exclude

prettierTS (include, excludes)

Automatically tidies the code (for TYPESCRIPT code)

  • include the root folder prettify
  • excludes an array of folders to exclude

processPackage (callback, autoUpdate)

Load the package.json file

  • callback a function which will receive the package.json file's contents
  • autoUpdate should the version of the package.json be automatically updated and saved

removeModuleAlias (moduleName, folder)

Automatically flattens typescript module paths

  • moduleName the name of the path module to remove
  • folder the actual path of the module

test (minimum_coverage, include, excludes)

Compile the codebase (in accordance to the typescript config)

  • minimum_coverage the minimum coverage threshold for each file (0 to 100)
  • include the path to the root directory (default "src")
  • excludes an array of paths to be excluded (default [])

tsc (config)

Compile the codebase (in accordance to the typescript config)

  • config the path to the tsconfig file

zip (from, to)

Create a zip of the build

  • from the build path
  • to the path to the zip file being produced