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

@ibgib/helper-gib

v0.0.29

Published

common helper/utils/etc used in ibgib libs. Node v19+ needed for heavily-used isomorphic webcrypto hashing consumed in both node and browsers.

Downloads

313

Readme

🚧

I have created a working MVP for ibgib that shows some of the potential for the architecture:

  • try it out
    • https://ibgib.space
  • pre-refactored MVP codebase on GitHub
    • ionic-gib: https://github.com/wraiford/ibgib/tree/v0.2.729/ionic-gib
    • "pre-refactored" = doesn't use this core-gib lib, but rather is the springboard/"carcass" for it.
  • base ibgib protocol graphing substrate lib on GitLab
    • ts-gib: https://gitlab.com/ibgib/ts-gib

I'm pulling out behavior from the ionic-gib project into this lib.

helper-gib - shared, utils, common, respec testing framework and more

This library contains shared helper members (mostly functions) (a.k.a. "utils", "shared", "common", etc.) that are not necessarily directly ibgib-related but that are useful with ibgib in mind and thus consumed in multiple ibgib libs.

This also contains "respec-gib" (for now anyway until I break it out at a later time mayhap), which is a relatively simple testing harness for ES modules only.

respec-gib

it's similar to other unit testing frameworks, but way less complicated, way better jargon, and way more respecful. In the future, it would probably be best to allow customizable jargon. Anyway, here is the deets.

NOTE: It only works in node atow, but I will be adding a simple server for executing in a browser environment as well.

"config"

In lieu of a config file, right now it configures execution via a script file, currently at respec-gib.node.mjs. This file does two basic things:

  1. locates respec files containing respecful specs
  2. executes those respecs

atow this execution occurs via an esm dynamic import call for each respec path.

politely equal

When you go to create your foo.respec.mts file (or however you end up naming it), at the very top you should import and set a respecful title:

import { respecfully, iReckon, ifWe, firstOfAll, firstOfEach } from '@ibgib/helper-gib/dist/respec-gib/respec-gib.mjs';
const maam = `[${import.meta.url}]`, sir = maam;

You can include whatever respecful pronoun you want here. Then, you use this throughout taken from respec-gib.respec.mts:

await respecfully(sir, 'firstOfAll only', async () => {
    let firstOfAllTriggered = false;

    firstOfAll(sir, async () => {
        firstOfAllTriggered = true;
    });

    await ifWe(sir, `do an ifWe block, firstOfAll should've triggered`, async () => {
        iReckon(sir, firstOfAllTriggered).isGonnaBeTrue();
    });
});