Skip to content

Commit 5864615

Browse files
committed
fix: update package name and references from csp-generator to csp-policy-gen in README and package.json
1 parent 4bcdf27 commit 5864615

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CSP Generator
1+
# CSP Policy Gen
22

33
A robust Content Security Policy (CSP) generator that works in both Node.js and browser environments. This tool analyzes HTML content and generates appropriate CSP headers to enhance your application's security.
44

@@ -12,10 +12,10 @@ A robust Content Security Policy (CSP) generator that works in both Node.js and
1212

1313
```bash
1414
# Install globally
15-
bun install -g csp-generator
15+
bun install -g csp-policy-gen
1616

1717
# Or install locally in your project
18-
bun add csp-generator
18+
bun add csp-policy-gen
1919
```
2020

2121
## Usage
@@ -48,23 +48,23 @@ csp-generator
4848

4949
- **Node.js:**
5050
```js
51-
import {SecureCSPGenerator} from 'csp-generator'
51+
import {SecureCSPGenerator} from 'csp-policy-gen'
5252
```
5353
- **Browser:**
5454
```js
55-
import {CSPGenerator} from 'csp-generator/browser'
55+
import {CSPGenerator} from 'csp-policy-gen/browser'
5656
```
5757

5858
---
5959

6060
## TypeScript Support
6161

62-
This package ships with full TypeScript type definitions. Types are automatically included when you import from `csp-generator` in a TypeScript project.
62+
This package ships with full TypeScript type definitions. Types are automatically included when you import from `csp-policy-gen` in a TypeScript project.
6363

6464
If you need to import specific types:
6565

6666
```ts
67-
import type {SecureCSPGeneratorOptions} from 'csp-generator/dist/types'
67+
import type {SecureCSPGeneratorOptions} from 'csp-policy-gen/dist/types'
6868
```
6969

7070
---
@@ -202,7 +202,7 @@ You can also use the CSP generator directly in your browser:
202202

203203
```html
204204
<script type="module">
205-
import {CSPGenerator} from 'csp-generator/browser'
205+
import {CSPGenerator} from 'csp-policy-gen/browser'
206206
207207
// Create a new instance
208208
const generator = new CSPGenerator({

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "csp-generator",
2+
"name": "csp-policy-gen",
33
"private": false,
44
"version": "1.0.0",
5-
"description": "A Bun package to generate Content Security Policy (CSP) headers.",
5+
"description": "A package to generate Content Security Policy (CSP) headers.",
66
"type": "module",
77
"main": "./dist/csp-generator.js",
88
"browser": "./dist/csp-generator.browser.js",
@@ -58,7 +58,7 @@
5858
"jsdom": "^26.1.0"
5959
},
6060
"bugs": {
61-
"url": "https://github.com/BackendStack21/idempotence-middleware/issues"
61+
"url": "https://github.com/BackendStack21/csp-generator/issues"
6262
},
63-
"homepage": "https://github.com/BackendStack21/idempotence-middleware#readme"
63+
"homepage": "https://github.com/BackendStack21/csp-generator#readme"
6464
}

0 commit comments

Comments
 (0)