rename subresourceintegrity to websri

This commit is contained in:
Nebel 2024-09-03 03:57:12 +09:00
parent baf961b720
commit 80b05c376c
Signed by: nebel
GPG key ID: 79807D08C6EF6460
4 changed files with 17 additions and 17 deletions

View file

@ -11,5 +11,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [0.0.0] ## [0.0.0]
[Unreleased]: https://github.com/kou029w/subresourceintegrity [Unreleased]: https://github.com/kou029w/websri
[0.0.0]: https://github.com/kou029w/subresourceintegrity [0.0.0]: https://github.com/kou029w/websri

View file

@ -1,8 +1,8 @@
# subresourceintegrity # websri
[![NPM Version](https://img.shields.io/npm/v/subresourceintegrity)](https://www.npmjs.com/package/subresourceintegrity) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/subresourceintegrity) [![NPM Version](https://img.shields.io/npm/v/websri)](https://www.npmjs.com/package/websri) [![jsDocs.io](https://img.shields.io/badge/jsDocs.io-reference-blue)](https://www.jsdocs.io/package/websri)
`subresourceintegrity` is a utility designed for Subresource Integrity that works across various web-interoperable runtimes, including Node.js, browsers, Cloudflare Workers, Deno, Bun, and others. `websri` is a universal Subresource Integrity (SRI) utility for Node.js, browsers, Cloudflare Workers, Deno, Bun, and other web-compatible runtimes.
## Usage ## Usage
@ -10,22 +10,22 @@ Install package:
```sh ```sh
# npm # npm
npm install subresourceintegrity npm install websri
# yarn # yarn
yarn add subresourceintegrity yarn add websri
# pnpm # pnpm
pnpm install subresourceintegrity pnpm install websri
# bun # bun
bun install subresourceintegrity bun install websri
``` ```
[Integrity Metadata](https://www.w3.org/TR/SRI/#integrity-metadata): [Integrity Metadata](https://www.w3.org/TR/SRI/#integrity-metadata):
```ts ```ts
import { createIntegrityMetadata } from "subresourceintegrity"; import { createIntegrityMetadata } from "websri";
const res = new Response("Hello, world!"); const res = new Response("Hello, world!");
const data = await res.arrayBuffer(); const data = await res.arrayBuffer();
@ -37,7 +37,7 @@ console.log(integrityMetadata.toString());
## Documentation ## Documentation
[API Reference](https://www.jsdocs.io/package/subresourceintegrity) [API Reference](https://www.jsdocs.io/package/websri)
## FAQ ## FAQ
@ -47,4 +47,4 @@ console.log(integrityMetadata.toString());
## License ## License
`subresourceintegrity` is released under the MIT License. `websri` is released under the MIT License.

4
package-lock.json generated
View file

@ -1,11 +1,11 @@
{ {
"name": "subresourceintegrity", "name": "websri",
"version": "0.0.0", "version": "0.0.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "subresourceintegrity", "name": "websri",
"version": "0.0.0", "version": "0.0.0",
"license": "MIT", "license": "MIT",
"devDependencies": { "devDependencies": {

View file

@ -1,12 +1,12 @@
{ {
"name": "subresourceintegrity", "name": "websri",
"version": "0.0.0", "version": "0.0.0",
"description": "Subresource Integrity", "description": "A universal Subresource Integrity (SRI) utility for Node.js, browsers, Cloudflare Workers, Deno, Bun, and other web-compatible runtimes.",
"license": "MIT", "license": "MIT",
"author": "Kohei Watanabe <nebel@fogtype.com>", "author": "Kohei Watanabe <nebel@fogtype.com>",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/kou029w/subresourceintegrity.git" "url": "https://github.com/kou029w/websri.git"
}, },
"type": "module", "type": "module",
"exports": { "exports": {