Skip to main content

Useful common types and utilities for implementing Willow protocols.

Works with
This package works with Bun
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Browsers
JSR Score
94%
Published
4 days ago

Willow Utilities

A library of TypeScript typings and utilities for the elements of the Willow protocol:

  • Areas
  • Encodings
  • Entries
  • Ordering
  • Protocol parameters
  • Paths
  • Ranges

Currently used by meadowcap-js and willow-js.

Usage

Complete API documentation can be found here.

With ESM imports:

import * as WillowUtils from "https://deno.land/x/willow_utils/mod.ts"

NPM distribution coming very soon.

Development

Deno is used as the development runtime.

Tests can be run with deno task test.


This project was funded through the NGI Assure Fund, a fund established by NLnet with financial support from the European Commission's Next Generation Internet programme, under the aegis of DG Communications Networks, Content and Technology under grant agreement № 957073.

Add Package

deno add @earthstar/willow-utils

Import symbol

import * as mod from "@earthstar/willow-utils";

Add Package

npx jsr add @earthstar/willow-utils

Import symbol

import * as mod from "@earthstar/willow-utils";

Add Package

yarn dlx jsr add @earthstar/willow-utils

Import symbol

import * as mod from "@earthstar/willow-utils";

Add Package

pnpm dlx jsr add @earthstar/willow-utils

Import symbol

import * as mod from "@earthstar/willow-utils";

Add Package

bunx jsr add @earthstar/willow-utils

Import symbol

import * as mod from "@earthstar/willow-utils";