
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Connect to redis using a fully-qualified URL.
// Defaults to process.env.REDIS_URL or redis://localhost:6379
var redis = require('redis-url').connect();
// Or you can specify a URL
var redis = require('redis-url').connect(process.env.SOMEREDIS_URL);
The module also exposes a parse
function you can use to extract parts of a
redis URL. It behaves similarly to node's url.parse,
but adds two extra properties: password
and database
.
This feature comes in handy when using redis-backed tools that don't accept a fully-qualified URL, such as Hapi's catbox-redis.
require("redis-url").parse('redis://:secrets@example.com:1234/9?foo=bar&baz=qux')
{
protocol: 'redis:',
slashes: true,
auth: ':secrets',
host: 'example.com:1234',
port: '1234',
hostname: 'example.com',
hash: null,
search: '?foo=bar&baz=qux',
query: { foo: 'bar', baz: 'qux' },
pathname: '/9',
path: '9',
href: 'redis://:secrets@example.com:1234/9?foo=bar&baz=qux',
password: 'secrets',
database: '9'
}
redis://[:password@]host[:port][/db-number][?option=value]
db-number is a non-negative decimal integer
See the IANA registration for more details.
redis-server&
npm install
npm test
MIT
FAQs
Connect to redis using a fully-qualified URL
The npm package redis-url receives a total of 19,951 weekly downloads. As such, redis-url popularity was classified as popular.
We found that redis-url demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.