TypeScript modules for RFC 6920 Naming Things with Hashes
  • TypeScript 100%
Find a file
2025-12-30 21:55:11 -08:00
.changeset change package.json types to lib d.ts 2025-12-30 21:55:11 -08:00
config add some generated docs 2024-12-20 23:18:06 -08:00
docs more docs 2024-12-20 23:28:20 -08:00
etc more docs 2024-12-20 23:28:20 -08:00
.gitignore add some generated docs 2024-12-20 23:18:06 -08:00
AUTHORS initial implementation 2024-12-18 22:10:28 -08:00
naming-things-with-hashes.ts more docs 2024-12-20 23:28:20 -08:00
package-lock.json change package.json types to lib d.ts 2025-12-30 21:55:11 -08:00
package.json change package.json types to lib d.ts 2025-12-30 21:55:11 -08:00
README.md initial implementation 2024-12-18 22:10:28 -08:00
rfc6920.test.ts initial implementation 2024-12-18 22:10:28 -08:00
rfc6920.ts more docs 2024-12-20 23:28:20 -08:00
tsconfig.json initial implementation 2024-12-18 22:10:28 -08:00

naming-things-with-hashes

TypeScript modules for RFC 6920 Naming Things with Hashes.

Usage

import RFC6920 from "naming-things-with-hashes/rfc6920"

// https://www.rfc-editor.org/rfc/rfc6920#section-8.2
const example_8_2 = 'ni:///sha-256;UyaQV-Ev4rdLoHyJJWCi11OHfrYv9E1aGQAlMO2X_-Q'

const ni = RFC6920.parse(example_8_2)