37 lines
749 B
Markdown
37 lines
749 B
Markdown
# WXT Storage
|
|
|
|
[Changelog](https://github.com/wxt-dev/wxt/blob/main/packages/storage/CHANGELOG.md) • [Docs](https://wxt.dev/storage.html)
|
|
|
|
A simplified wrapper around the extension storage APIs.
|
|
|
|
## Installation
|
|
|
|
### With WXT
|
|
|
|
This module is built-in to WXT, so you don't need to install anything.
|
|
|
|
```ts
|
|
import { storage } from 'wxt/storage';
|
|
```
|
|
|
|
If you use auto-imports, `storage` is auto-imported for you, so you don't even need to import it!
|
|
|
|
### Without WXT
|
|
|
|
Install the NPM package:
|
|
|
|
```sh
|
|
npm i @wxt-dev/storage
|
|
pnpm add @wxt-dev/storage
|
|
yarn add @wxt-dev/storage
|
|
bun add @wxt-dev/storage
|
|
```
|
|
|
|
```ts
|
|
import { storage } from '@wxt-dev/storage';
|
|
```
|
|
|
|
## Usage
|
|
|
|
Read full docs on the [documentation website](https://wxt.dev/storage.html).
|