Emeralt database plugin to store packages in MongoDB
Using npm:
npm install @emeralt/database-mongodb
or using yarn:
yarn add @emeralt/database-mongodb
new EmeraltDatabaseMongoDB(options)
type Options = {
// mongodb connection URI
uri?: string
// indexing configuration
// by default, indexing is enabled (indexing property is undefined)
// but it can be disabled explicitly by setting indexing to false
indexing?:
| {
metadatas: boolean
versions: boolean
options?: IndexOptions
}
| false
}