diff --git a/CHANGELOG.md b/CHANGELOG.md index 2ea8b34..db0604f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,5 +11,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [0.0.0] -[Unreleased]: https://github.com/kou029w/subresourceintegrity -[0.0.0]: https://github.com/kou029w/subresourceintegrity +[Unreleased]: https://github.com/kou029w/websri +[0.0.0]: https://github.com/kou029w/websri diff --git a/README.md b/README.md index a18d04a..c6020e0 100644 --- a/README.md +++ b/README.md @@ -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 @@ -10,22 +10,22 @@ Install package: ```sh # npm -npm install subresourceintegrity +npm install websri # yarn -yarn add subresourceintegrity +yarn add websri # pnpm -pnpm install subresourceintegrity +pnpm install websri # bun -bun install subresourceintegrity +bun install websri ``` [Integrity Metadata](https://www.w3.org/TR/SRI/#integrity-metadata): ```ts -import { createIntegrityMetadata } from "subresourceintegrity"; +import { createIntegrityMetadata } from "websri"; const res = new Response("Hello, world!"); const data = await res.arrayBuffer(); @@ -37,7 +37,7 @@ console.log(integrityMetadata.toString()); ## Documentation -[API Reference](https://www.jsdocs.io/package/subresourceintegrity) +[API Reference](https://www.jsdocs.io/package/websri) ## FAQ @@ -47,4 +47,4 @@ console.log(integrityMetadata.toString()); ## License -`subresourceintegrity` is released under the MIT License. +`websri` is released under the MIT License. diff --git a/package-lock.json b/package-lock.json index c9c3b6f..0a98385 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "subresourceintegrity", + "name": "websri", "version": "0.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "subresourceintegrity", + "name": "websri", "version": "0.0.0", "license": "MIT", "devDependencies": { diff --git a/package.json b/package.json index 699ab6b..0484c3a 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,12 @@ { - "name": "subresourceintegrity", + "name": "websri", "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", "author": "Kohei Watanabe ", "repository": { "type": "git", - "url": "https://github.com/kou029w/subresourceintegrity.git" + "url": "https://github.com/kou029w/websri.git" }, "type": "module", "exports": {