Skip to content

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

License

Notifications You must be signed in to change notification settings

ndj91/astro-shield

 
 

Repository files navigation

Astro-Shield

NPM Version NPM Downloads GitHub commit activity GitHub Actions Workflow Status Socket Badge OpenSSF Best Practices

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.

About

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

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 91.8%
  • JavaScript 3.1%
  • Astro 2.9%
  • CSS 2.1%
  • Shell 0.1%