1.0.6 • Published 3 years ago
joseph.db v1.0.6
Importing
// ES6 Import
import DataBase from 'joseph.db';
// Node module Import
const Database = require('joseph.db');
Create database
Usage:
Database(dataName, dataKey, options);
Example:
const myData = Database('settings', 'language', {
defaultData: 'English', // Default data
autoCheck: true, // Set the data when there is no data
});
Methods
myData.set(newData); // Setting the data.
myData.get(); // Get the data in the key.
myData.has(); // There are data in the key.
myData.clear(); // Set the data to default data.
myData.delete(); // Delete the data in the key.
1.0.6
3 years ago