astro-shield

Astro integration to enhance your website's security with SubResource Integrity hashes, Content-Security-Policy headers, and other techniques.

MIT License

Downloads
2.2K
Stars
36
Committers
1

Astro-Shield

Introduction

Astro-Shield helps you to enhance the security of your Astro site.

How to install

# With NPM
npm install --save-dev @kindspells/astro-shield

# With Yarn
yarn add --dev @kindspells/astro-shield

# With PNPM
pnpm add --save-dev @kindspells/astro-shield

How to use

In your astro.config.mjs file:

import { defineConfig } from 'astro/config'
import { shield } from '@kindspells/astro-shield'

export default defineConfig({
  integrations: [
    shield({})
  ]
})

Learn more

Other Relevant Guidelines

Main Contributors

This library has been created and is being maintained by KindSpells Labs.

License

This library is released under MIT License.

Package Rankings
Top 40.56% on Npmjs.org
Badges
Extracted from project README
NPM Version Socket Badge OpenSSF Best Practices