Registry / database / ronin-entity

ronin-entity

JSON →
library0.1.11jsnpmunverified

A simple MongoDB ORM for Node.js, providing lightweight entity management and querying. Latest version is 0.1.11, with an unstable API. Limited documentation and infrequent updates. Minimalistic alternative to Mongoose, lacking schema validation and type safety.

npm install ronin-entity
INSTALL
IMPORT
SIG · RONIN-ENTITY
R
ronin-entity
databasejavascriptv0.1.11
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import Entity from 'ronin-entity'
const Entity = require('ronin-entity')
ESM import is recommended; no default export if using require.
entity
import { entity } from 'ronin-entity'
const { entity } = require('ronin-entity')
Named export 'entity' available; CJS destructuring works but not documented.
Ronen
import { Ronen } from 'ronin-entity'
Class 'Ronen' exported; likely to instantiate ORM.

Demonstrates instantiating the Ronen ORM, defining a model, and creating a document.

import { Ronen } from 'ronin-entity'; const orm = new Ronen({ uri: 'mongodb://localhost:27017/mydb' }); const Entity = orm.model('User', { name: String }); const user = await Entity.create({ name: 'Alice' }); console.log(user);
Debug
Known issues
breakingNo known breaking changes; API may change without notice given pre-1.0 version.
fix
Pin to specific version and test upgrades.
affects: >=0.1.0
gotchaNo README or documentation; usage inferred from package.json and source.
fix
Inspect source code to understand API.
affects: >=0.1.0
gotchaEngine requirement node >=0.10.0, may not work with modern Node versions.
fix
Use Node 10 or later; test compatibility.
affects: >=0.1.0
Errors
Common errors & fixes
Cannot find module 'ronin-entity'
Package not installed or typo in import path.
fix
Run 'npm install ronin-entity' and ensure spelling.
Ronen is not a constructor
Incorrect import; 'Ronen' may not be default export.
fix
Use named import: import { Ronen } from 'ronin-entity'
Upgrade
Version history
0.1.11latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ronin-entity — npm install ronin-entity · libregistry