New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ron

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ron - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

.travis.yml

34

package.json
{
"name": "ron",
"version": "0.0.3",
"description": "Redis ORM for NodeJs",
"description": "Redis ORM for NodeJs.",
"keywords": ["redis", "orm", "database", "nosql"],
"version": "0.0.4",
"homepage": "http://www.adaltas.com/projects/node-ron",
"author": "David Worms <david@adaltas.com>",
"contributors": [
{ "name": "David Worms", "email": "david@adaltas.com" }
],
"repository": {
"type": "git",
"url": "https://github.com/wdavidw/node-ron"
},
"bugs": {
"email": "open@adaltas.com",
"url": "http://github.com/wdavidw/node-ron/issues"
},
"dependencies": {

@@ -13,12 +20,13 @@ "redis": "latest"

"devDependencies": {
"expresso": "latest"
"mocha": "latest",
"should": "latest"
},
"engines": {
"node": ">= 0.3.0"
},
"keywords": ["redis", "orm", "database", "nosql"],
"repository": {
"type": "git",
"url": "https://github.com/wdavidw/node-redis-orm.git"
"contributors": [
{ "name": "David Worms", "email": "david@adaltas.com" }
],
"main": "index",
"engines": { "node": ">= 0.4.0" },
"scripts": {
"test": "mocha"
}
}

@@ -5,4 +5,26 @@

Ad-lib, be carefull, this project is experimental.
Installation
------------
```bash
npm install ron
```
Usage
-----
```javascript
ron = require('ron');
client = ron({
redis_port: 6379
redis_host: '127.0.0.1'
name: 'auth'
});
users = client.define('users');
users.property('id', {identifier: true});
users.property('username', {unique: true});
users.property('email', {index: true, email: true});
users.property('name', {});
```
The library provide

@@ -14,25 +36,3 @@ -------------------

* Records are pure object, no extended class, no magic properties
* Code, tests and readme written in coffescript, samples written in javascript
Quick exemple
-------------
ron = require 'ron'
app = ron
host: ''
port: ''
name: 'auth'
User = app.create 'users'
User.property 'id',
identifier: true
# Use a hash index
User.property 'username',
type: 'string'
unique: true
# Use a sorted set index
User.property 'email',
type: 'string'
index: true
Client API

@@ -43,3 +43,3 @@ ----------

* Client::quit
* Client::create
* Client::define

@@ -51,4 +51,4 @@ Schema API

* Records::identifier
* Records::index
* Records::unique
* Records::index
* Records::email

@@ -73,7 +73,11 @@

Start a redis server (tested against version 2.9.0) on the default port
redis-server ./conf/redis.conf
```bash
redis-server ./conf/redis.conf
```
Run the test suite with *expresso*:
expresso -s
```bash
expresso -s
```

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc