JSPM

@jacobtread/astro-shield

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 6
  • Score
    100M100P100Q67084F
  • License MIT

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

Package Exports

  • @jacobtread/astro-shield
  • @jacobtread/astro-shield/core
  • @jacobtread/astro-shield/state

Readme

Astro-Shield

NPM Version NPM Downloads GitHub commit activity GitHub Actions Workflow Status Socket Badge

Introduction

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

How to install

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

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

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

How to use

In your astro.config.mjs file:

import { defineConfig } from "astro/config";
import { shield } from "@jacobtread/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.