@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')
})