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

@opigence.com/utils

v1.12.9

Published

Common Utilities targeting ESM / Typescript environments

Downloads

9

Readme

= Utils

This module includes general-purpose Typescript/NodeJS utilities.

WARNING: Circa 2023-01(Jan), npx np has faced issues. + Manually update version, then: + npm publish --access public

== Module Publication

[%autowidth, frame="none", grid="none", cols=">h,<"] |===

|npm run installLatest |Updates library dependencies.

|npm run doAll |Build typescript and run available jests.

|git commit |Commit all local changes and push them to origin/main.

|npm login |Use the provided link to open a browser and authenticate with npm.

|npx np |Trigger the np publisher. + Review the list of files (if any) that are being published for the first time.

|select semver |np clarifies whether the update is a patch, minor, major, ... + np will insist you stash any local, uncommitted changes!

|Provide one-time password |After running tests, np will seek a fresh one-time password when 'publishing'. + ✔ Prerequisite check + ✔ Git + ✔ Installing dependencies using npm + ✔ Running tests using npm + ✔ Bumping version using npm <- one-time password required here + ✔ Publishing package using npm <- np may hang and still be successful! + ✔ Pushing tags +

|Review Versions |https://www.npmjs.com/search?q=%40opigence%2Futils

|Remove a Version |npm unpublish @opigence.com/[email protected] --force

|Deprecate a Version |npm deprecate -f @opigence.com/[email protected] "this package has been deprecated"

|===

WARNING: The documentation below (and other project adocs) needs to be reviewed/updated!

== Antora Support The primary focus is to facilitate automatically generating an _antora/ directory that complies with Antora's standard directory requirements.

=== Included AsciiDoc Files One symbolic link is created for each discovered AsciiDoc file.

=== Included "Snippet" Files One AsciiDoc file is created per Snippet source file.

Snippet source files are non-AsciiDoc files (i.e., no .adoc suffix) that embed snippets. Snippets are lines with one of the following snippet-prefixes.

[horizontal] //adoc|:: Snippet prefix for files using //-delimited comments #adoc|:: Snippet prefix for files using #-delimited comments

=== Optional TsDoc Inclusion The typedoc npm module generates HTML from embedded TsDoc notation. Support exists for generating thus HTML into _antora/ and referencing it in the generated Antora navigation file.

=== Optional Code Coverage Inclusion Support exists for copying Code Coverage HTML into _antora/ and referencing it in the generated Antora navigation file.

== KNOWN ISSUES There's no clean way of adding npm run antora to .git/hooks/pre-commit without creating some issues. For example: Tools like VsCode do not show any messages written to the console. Rebuilding Antora (a) takes time and (b) it takes VsCode a little time to detect any file changes and reconcile "Changes" to "Staged Changes".

Tactically, an Antora rebuild is being added as a pre-commit on a trial basis.

== Trigger on Git Pre-Commit In order to ensure that antora/ is up-to-date, a Git pre-commit hook is defined.

..git/hooks/pre-commit

#!/bin/sh npm run antora

NOTE: Watch for the case where .git/hooks/pre-commit reverts to non-executable.

== LICENSE

Copyright (C) 2023-Present Wesley M. Conner DBA Opigence Tech License: Apache-2.0 See LICENSE.txt