TypeScript modules for RFC 6920 Naming Things with Hashes
- TypeScript 100%
| .changeset | ||
| config | ||
| docs | ||
| etc | ||
| .gitignore | ||
| AUTHORS | ||
| naming-things-with-hashes.ts | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| rfc6920.test.ts | ||
| rfc6920.ts | ||
| tsconfig.json | ||
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)