engined-storage-local
Local storage backend for engined.
Installation
Install via NPM:
npm install engined-storage-local
Usage
Start engined-storage-local service in engined, see example below:
const Manager = ;const StorageService = ;const LocalStorageService = ; const storage = ;const localStorage = ; const main = async { // Create manager let serviceManager = verbose: true ; // Adding service to manager serviceManager; serviceManager; // Start all services await serviceManager;}; ;
Save file with local storage backend
The example to show how to save file with local storage backend:
// Using local storage backendlet localAgent = this; // Save filelet storageTask = localAgent; storageTask; storageTask;
License
Licensed under the MIT License
Authors
Copyright(c) 2017 Fred Chien(錢逢祥) <cfsghost@gmail.com>