nosecone
Version:
Protect your Response with secure headers
45 lines (32 loc) • 1.3 kB
Markdown
<a href="https://arcjet.com" target="_arcjet-home">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://arcjet.com/logo/arcjet-dark-lockup-voyage-horizontal.svg">
<img src="https://arcjet.com/logo/arcjet-light-lockup-voyage-horizontal.svg" alt="Arcjet Logo" height="128" width="auto">
</picture>
</a>
# `nosecone`
<p>
<a href="https://www.npmjs.com/package/nosecone">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/npm/v/nosecone?style=flat-square&label=%E2%9C%A6Aj&labelColor=000000&color=5C5866">
<img alt="npm badge" src="https://img.shields.io/npm/v/nosecone?style=flat-square&label=%E2%9C%A6Aj&labelColor=ECE6F0&color=ECE6F0">
</picture>
</a>
</p>
Protect your `Response` with secure headers.
- [npm package (`nosecone`)](https://www.npmjs.com/package/nosecone)
- [GitHub source code (`nosecone/` in `arcjet/arcjet-js`)](https://github.com/arcjet/arcjet-js/tree/main/nosecone)
## Installation
```shell
npm install -S nosecone
```
## Example
```ts
import nosecone from "nosecone";
const secureResponse = new Response(null, {
headers: nosecone(),
});
```
## License
Licensed under the [Apache License, Version 2.0][apache-license].
[apache-license]: http://www.apache.org/licenses/LICENSE-2.0