Exciting news!Announcing our $4.6M Series Seed. Learn more
Socket
LoveBlogFAQ
Install
Log in

ormnomnom

Package Overview
Dependencies
9
Maintainers
4
Versions
62
Issues
File Explorer

Advanced tools

ormnomnom

a lightweight orm to silence the orm-y beast

    7.3.0latest

Version published
Maintainers
4
Yearly downloads
17,228
increased by14.18%

Weekly downloads

Readme

Source

ormnomnom

ORMnomnom is yet another Node ORM. It is specifically for use with postgres (via pg), exposes single-async-events as bluebird promises, and exposes async-iterables as streams. It requires a modern version of Node (v4+).

const orm = require('ormnomnom') class Package { constructor (opts) { Object.assign(this, opts) } } class Author { constructor (opts) { Object.assign(this, opts) } } const PackageObjects = orm(Package, { id: { type: 'integer' }, name: { type: 'string', pattern: '^[a-z0-9]$'}, author: orm.fk(Author) }) const AuthorObjects = orm(Author, { id: { type: 'integer' }, name: { type: 'string', pattern: '^[a-z0-9]$'}, email: { type: 'string', format: 'email'} }) PackageObjects.filter({'author.name:startsWith': 'Gary'}).then(objects => { // list of objects })

Documentation

License

MIT

Keywords

FAQs

What is ormnomnom?

a lightweight orm to silence the orm-y beast

Is ormnomnom popular?

The npm package ormnomnom receives a total of 156 weekly downloads. As such, ormnomnom popularity was classified as not popular.

Is ormnomnom well maintained?

We found that ormnomnom demonstrated a healthy version release cadence and project activity. It has 4 open source maintainers collaborating on the project.

Last updated on 21 Apr 2022
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc