Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

async-redis

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

async-redis - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

.editorconfig

39

package.json
{
"private": false,
"name": "async-redis",
"version": "1.0.0",
"description": "A light wrapper over redis_node for first class promise support.",
"main": "index.js",
"version": "1.1.0",
"description": "Light wrapper over redis_node with first class promise support.",
"main": "src/index.js",
"engines": {
"node": ">=7.6.0"
},
"scripts": {
"test": "mocha test --recursive"
"coveralls": "nyc yarn test && nyc report --reporter=text-lcov | coveralls",
"lint": "eslint --fix --ext .js, src",
"test": "mocha test --recursive",
"version:patch": "npm --no-git-tag-version version patch",
"version:minor": "npm --no-git-tag-version version minor",
"version:major": "npm --no-git-tag-version version major"
},

@@ -18,3 +27,3 @@ "keywords": [

"dependencies": {
"redis": "^2.7.1",
"redis": "^2.8.0",
"redis-commands": "^1.3.1"

@@ -24,4 +33,22 @@ },

"chai": "^3.5.0",
"mocha": "^3.2.0"
"coveralls": "^3.0.0",
"eslint": "^4.17.0",
"eslint-config-airbnb": "^16.1.0",
"eslint-plugin-import": "^2.8.0",
"eslint-plugin-jsx-a11y": "^6.0.3",
"eslint-plugin-react": "^7.6.1",
"mocha": "^3.2.0",
"nyc": "^11.4.1"
},
"repository": {
"type": "git",
"url": "git://github.com/moaxaca/async-redis.git"
},
"bugs": {
"url": "https://github.com/moaxaca/async-redis/issues"
},
"directories": {
"example": "examples",
"test": "test"
}
}

22

README.md
Async Redis
===========================
This is a light weight wrapper over the node_redis library with first call promise support. Ideal for ES7 async functions.
[![Build Status](https://travis-ci.org/moaxaca/async-redis.svg?branch=master)](https://travis-ci.org/moaxaca/async-redis)
[![Coverage Status](https://coveralls.io/repos/github/moaxaca/async-redis/badge.svg)](https://coveralls.io/github/moaxaca/async-redis)
This is a light weight wrapper over the node_redis library with first class promise support. Ideal for ES7 async functions.
## Usage Example
### Creating Connection
```js

@@ -16,19 +20,13 @@ const asyncRedis = require("async-redis");

const async fn() {
const asyncBlock = async () => {
return await client.set("string key", "string val");
};
fn()
.then((results) => {
// Handle Results
})
.catch((error) => {
// Handle Errors
});
```
## Decorating Existing Connection
### Decorating Existing Connections
```js
const redis = require("redis");
const client = redis.createClient();
const asyncRedis = require("async-redis");
const asyncClient = asyncRedis.decorate(redisClient);
const asyncRedisClient = asyncRedis.decorate(client);
```

@@ -35,0 +33,0 @@

"use strict";
const { assert } = require('chai');
const objectDecorator = require('../../lib/objectDecorator');
const objectDecorator = require('../../src/object-decorator');

@@ -44,2 +44,2 @@ const Mock = function () {

});
});
});
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