Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ All notable changes to this project will be documented in this file. The format

### Changed
- Expanded npm keywords for better discoverability (added x-frame-options, web-security, http-headers, auditor, cli, nodejs, typescript, zero-dependencies, owasp, gdpr).
- Replaced the placeholder `"TrustYourWebsite Editorial"` `author` field with the canonical `TrustYourWebsite <info@trustyourwebsite.nl> (https://trustyourwebsite.nl)` contact, matching the other @trustyourwebsite packages.
- Replaced the placeholder `"TrustYourWebsite Editorial"` `author` field with the canonical `TrustYourWebsite <info@trustyourwebsite.com> (https://trustyourwebsite.com)` contact, matching the other @trustyourwebsite packages.
- Added `"sideEffects": false` to help bundlers tree-shake unused checks.
- Added `"publishConfig": { "access": "public" }` so scoped public publishing is explicit.
- The published tarball now includes `README.md` and `LICENSE` alongside `dist/`.
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Zero-dependency Node.js tool that grades website security headers (HSTS, CSP, X-Frame-Options, etc.) with A+ to F scoring. CI-friendly with configurable minimum grade threshold.

Built by [TrustYourWebsite](https://trustyourwebsite.nl) — automated website compliance scanning for EU small businesses.
Built by [TrustYourWebsite](https://trustyourwebsite.com) — automated website compliance scanning for EU small businesses.

## Quick Start

Expand Down Expand Up @@ -101,7 +101,7 @@ Recommendations:
2. Add Permissions-Policy header (MEDIUM priority)
3. Remove server version from Server header (LOW priority)

Full website compliance scan → https://trustyourwebsite.nl
Full website compliance scan → https://trustyourwebsite.com
```

## Headers Checked
Expand Down Expand Up @@ -165,7 +165,7 @@ security-headers:

## Related

- [TrustYourWebsite](https://trustyourwebsite.nl) — Full website compliance scanning for EU businesses
- [TrustYourWebsite](https://trustyourwebsite.com) — Full website compliance scanning for EU businesses
- [@trustyourwebsite/dns-auth-check](https://github.com/trustyourwebsite/dns-auth-check) — SPF, DKIM, DMARC, BIMI and MTA-STS email authentication auditor
- [@trustyourwebsite/cookie-consent-validator](https://github.com/trustyourwebsite/cookie-consent-validator) — Verify cookie consent banners actually stop tracking on "Reject All"

Expand All @@ -175,4 +175,4 @@ MIT

---

Built by [TrustYourWebsite](https://trustyourwebsite.nl) — we help EU small businesses stay compliant with automated website scanning. [Get a free compliance scan](https://trustyourwebsite.nl).
Built by [TrustYourWebsite](https://trustyourwebsite.com) — we help EU small businesses stay compliant with automated website scanning. [Get a free compliance scan](https://trustyourwebsite.com).
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@
"owasp",
"gdpr"
],
"homepage": "https://trustyourwebsite.nl",
"homepage": "https://trustyourwebsite.com",
"repository": {
"type": "git",
"url": "git+https://github.com/trustyourwebsite/security-headers.git"
},
"bugs": {
"url": "https://github.com/trustyourwebsite/security-headers/issues"
},
"author": "TrustYourWebsite <info@trustyourwebsite.nl> (https://trustyourwebsite.nl)",
"author": "TrustYourWebsite <info@trustyourwebsite.com> (https://trustyourwebsite.com)",
"license": "MIT",
"engines": {
"node": ">=18.0.0"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Examples:
security-headers https://example.com --ci --min-grade A
security-headers https://example.com --output report.json --format json

Full website compliance scan -> https://trustyourwebsite.nl
Full website compliance scan -> https://trustyourwebsite.com
`;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export function formatTable(result: ScanResult): string {

lines.push('');
lines.push(
'Full website compliance scan \u2192 https://trustyourwebsite.nl'
'Full website compliance scan \u2192 https://trustyourwebsite.com'
);

return lines.join('\n');
Expand Down
2 changes: 1 addition & 1 deletion src/formatters/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export function formatText(result: ScanResult): string {
}

lines.push('');
lines.push('Full website compliance scan -> https://trustyourwebsite.nl');
lines.push('Full website compliance scan -> https://trustyourwebsite.com');

return lines.join('\n');
}
6 changes: 3 additions & 3 deletions tests/formatters.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ describe('formatTable', () => {
expect(output).toContain('TLSv1.3');
});

it('includes trustyourwebsite.nl link', () => {
expect(formatTable(mockResult)).toContain('trustyourwebsite.nl');
it('includes trustyourwebsite.com link', () => {
expect(formatTable(mockResult)).toContain('trustyourwebsite.com');
});

it('shows info disclosure warnings', () => {
Expand Down Expand Up @@ -92,7 +92,7 @@ describe('formatText', () => {
it('includes grade and URL', () => {
const output = formatText(mockResult);
expect(output).toContain('B (72/100)');
expect(output).toContain('trustyourwebsite.nl');
expect(output).toContain('trustyourwebsite.com');
});

it('shows PASS/FAIL labels', () => {
Expand Down
Loading