
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
Elegant Database is a JavaScript library that provides advanced features for managing and interacting with a database. It supports both JSON and Elegant (Custom Adaptor of ElegantDB) adaptors for storage.
You can install Elegant Database using npm:
npm install elegantdb
Import the necessary components from the library:
import { Database, JSONAdaptor, ElegantAdaptor } from 'elegantdb';
Create an instance of the Database class with appropriate options:
const db = new Database({
adaptor: new JSONAdaptor(), // or new ElegantAdaptor()
path: './my-database.json', // Optional, specify the path
disableCheckUpdates: false, // Optional, disable update checks
useExperimentalCaches: false // Optional
});
JSONAdaptor: JSON adaptor | database.jsonElegantAdaptor: Custom Adaptor of ElegantDB | database.elegantset(key, value): Set a value in the database.add(key, value): Add a value in the database.get(key): Get a value from the database.has(key): Check if a key exists in the database.remove(key): Remove a key from the database.clone(): Create a clone of the database instance.all(): Get All Data from Adaptor.getCache(): Get All Cache from DatabaseIf you encounter any issues or have suggestions for improvements, please feel free to open an issue on GitHub.
We use Semantic Versioning for versioning. See the latest releases on npm.
This project is licensed under the ISC License.
Please feel free to copy and paste this template into your repository's README file. Make sure to review it and adjust any formatting or content as needed to fit your preferences.
FAQs
✨ Faster and Useful Database and Database Group.
We found that elegantdb demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.