1.0.0 • Published 1 year ago

niacon v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Nia

Nia is a flexible database management package for Node.js, offering support for both SQL and NoSQL databases. With Nia, you can seamlessly create and manage databases, providing developers with the freedom to choose the storage method that best fits their project requirements.

Features

  • Cross-Platform: Nia is compatible with Windows, macOS, and Linux environments, ensuring flexibility and accessibility.
  • SQL and NoSQL Support: Whether you prefer the structure of SQL or the flexibility of NoSQL, Nia has you covered. Choose between SQL and NoSQL storage methods based on your project needs.
  • Easy to Use: Nia provides a simple and intuitive interface for database management, making it easy for developers to integrate into their projects.
  • Scalable: Designed to scale with your project, Nia allows you to manage databases of any size efficiently.
  • Customizable: Tailor Nia to your specific requirements with customizable configuration options for SQL and NoSQL databases.

Installation

To install Nia, simply run the following command in your terminal:

npm install nia

Usage

const Nia = require('nia');

// Create a new Nia instance with SQL storage
const niaSQL = new Nia('sql', { /* SQL configuration */ });

// Create a new database
niaSQL.createDatabase('myDatabase')
    .then(() => console.log('Database created successfully'))
    .catch(err => console.error('Error creating database:', err));

// Create a new Nia instance with NoSQL storage
const niaNoSQL = new Nia('noSql', { /* NoSQL configuration */ });

// Create a new collection
niaNoSQL.createCollection('myCollection')
    .then(() => console.log('Collection created successfully'))
    .catch(err => console.error('Error creating collection:', err));

Replace { / SQL configuration / } and { / NoSQL configuration / } with the appropriate configuration objects for your SQL and NoSQL databases, respectively.

Documentation

For more detailed documentation and examples, visit the Nia GitHub repository. License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.0

1 year ago