@moltin/node-storage-adapter
v1.0.0
Published
[![npm version](https://img.shields.io/npm/v/@moltin/node-storage-adapter.svg)](https://www.npmjs.com/package/@moltin/node-storage-adapter) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](htt
Downloads
5
Readme
@moltin/node-storage-adapter
A storage adapter for
node-localstorage
and the JS SDK. Requires JS SDKv4.0.0
.
🛠 Installation
Install the package from npm and import to your project.
npm install --save @moltin/node-storage-adapter
⛽️ Usage
import { gateway as MoltinGateway } from '@moltin/sdk'
import NodeStorageAdapter from '@moltin/node-storage-adapter'
const Moltin = MoltinGateway({
client_id: 'XXX',
storage: new NodeStorageAdapter('./localStorage')
})