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

bin2npm

v0.0.4

Published

A cli tool by @bjesuiter which takes one or more binaries for different platforms and wraps them into an npm package for distribution. Can also be used via bin2npm package on npmjs.org

Downloads

178

Readme

bin2npm

A helper cli which takes one or more binaries for different platforms and wraps them into an npm package for distribution.

Installation via deno

  1. Install from deno.land/x (installs exactly this url, so it will always run the latest version of itself!) deno install --allow-read='.' --allow-write='.' -n bin2npm https://deno.land/x/bin2npm/src/cli.ts

  2. Write a config (TODO @bjesuiter)

Installation via npm

Global Installation: npm i -g bin2npm

Local Installation: npm i -D bin2npm

Usage (for both deno & npm)

  1. Write a config file (TODO @bjesuiter)
  2. Run bin2npm => It will search for all bin2npm.toml files inside your CWD
  3. Finished! If your config was correct, then your output npm package should be in your configured output dir!

If you have any issues, please open an Issue at: https://github.com/bjesuiter/bin2npm/issues

For Developers of this package

Use asset_builder from (https://deno.land/x/asset_builder) to have the template folder available to the deno cli. Run deno task pack-assets to pack the files in /template into src-gen/assets.ts IMPORTANT: This MUST also be done for the deno variant, otherwise the package will not work when installed from deno.land/x!

Releasing a new version (for deno.land/x and npm)

  1. Increase versions:
    1. In cli.ts for the bin2npm cli
    2. Of target npm package by updating the version in ./bin2npm.toml
    3. In Changelog here at the bottom of the readme
  2. Run deno task pack-assets
  3. Commit all changes
  4. Add a new git tag for your new version and push it => will trigger the deploy-npm.yml github workflow + automatically add it to deno.land/x

For deploying manually, run

  1. deno task compile to compile the deno scripts with the deno executable into self-contained executables
  2. deno task assemble-npm => This runs bin2npm on the compiled output of itself! (Great, isn't it?!?)
  3. deno task publish-npm to publish on npm

Changelog

0.0.4 - 2023-06-10

  • First Version built by Github Actions

0.0.3 - 2023-06-10

  • Fix missing assets for both deno.land/x and npm, by inlining the assets as base64

0.0.2 - 2023-06-10

  • Fixing stdin of wrapped child processes, was not attached to process.stdin before, so selecting the config to use was not possible!

0.0.1 - 2023-06-10

  • initial release