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

magic-wormhole

v1.0.6-ad51cf3-1

Published

magic-wormhole packaged for distribution with npm

Downloads

15

Readme

magic-wormhole-npm

magic-wormhole is a project to let you send files easily and securely between computers.

This is an npm package which provides easy access to magic-wormhole, using binaries from the Go implementation (wormhole-william).

This project is UNOFFICIAL: it is not associated with either the main magic-wormhole project or with wormhole-william.

Use

Running npx magic-wormhole send file.zip will prepare file.zip to be sent, and will print a "wormhole code" like 7-crossover-clockwork.

Running npx magic-wormhole recv 7-crossover-clockwork (using the code printed out by the previous command) on a different computer will then download that file. No coordination beyond the code is necessary.

This requires a recent version (≥ 7) of npm to be installed. If you don't already have npm installed, you will probably find it easier to download a binary from wormhole-william directly.

This project can interoperate with magic-wormhole and wormhole-william, so if one computer already has one of those set up, you don't need to use this package on that machine.

Details

Each supported platform has a seperate npm package which specifies os/cpu it supports in its package.json. All such packages are listed as optional dependencies of this package. Assuming you're using a recent version of npm, it should download only the dependency which matches your platform, and the shim will execute it.

This approach was copied from esbuild, though esbuild goes to considerably greater lengths to support unusual situations.

Building this project

You'll need to have node and go installed, and you will need wormhole-william cloned to a sibling of this directory (or modify the WILLIAM_DIR variable in build.js.

Then run node build.js to build everything. That will create package.json and platforms.json in this directory, and a build/ subdirectory containing all the various per-platform packages.