remote-git-storage
Easy data storage using Git hosting service.
Requirements
Install
$ npm install remote-git-storage
Usage
It's simple.
const RemoteStorage = { const storage = // Ref has a unique path. // The path means a JSON file path in the repository. const ToDo = await storage // Save as a JSON file. // Supported type: string, number, boolean, null await ToDo // Load the saved object const todos = await ToDo console // [ { text: 'To meet my dad', // done: false, // createdAt: 'Sun Jul 23 2017 11:27:32 GMT+0900 (JST)', // impotant: 10 } ]}
License
This software is released under the MIT License.