unstorage-xlog-driver
v0.0.1
Published
unjs/unstorage driver for xlog.app
Downloads
1
Readme
unstorage-xlog-driver
This is my package description.
Usage
Install package:
# npm
npm install packageName
# yarn
yarn add packageName
# pnpm
pnpm install packageName
# bun
bun install packageName
Import:
import { createStorage } from "unstorage";
import { xLogStorageDriver } from "../src/index";
const OTTO_ID = 53_709;
async function main() {
const storage = createStorage({
driver: xLogStorageDriver({
characterId: OTTO_ID,
ttl: 60 * 60,
}),
});
// const keys = await storage.getKeys();
// console.log(keys);
const info = await storage.getItem("72.md");
// const info = await storage.getMeta("72.md");
console.log(info);
}
main();
Development
- Clone this repository
- Install latest LTS version of Node.js
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run interactive tests using
pnpm dev
License
Made with 💛
Published under MIT License.