New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

regg

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regg

regg helps keep your system decoupled by providing a central location where your application information can be found by other parts of your application.

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

regg - Registry Pattern for JavaScript

regg helps keep your system decoupled by providing a central location where your application information can be found by other parts of your application.

Installation

 npm install regg

Usage

Register your functions, objects, string etc using register(). Once registered with the service locator there is no way to change it.

var regg = require('regg')()
var foo = 'bar'
regg.register('foobar', foo)

console.log(regg.get('foobar')) // bar

regg.register('logger', console.bind(console))

regg.logger.get('logger').info('Hello world') // Hello world

Credits

Paul Serby follow me on twitter @serby

Licence

Licenced under the New BSD License

Keywords

service locator

FAQs

Package last updated on 02 Apr 2013

Did you know?

Socket

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.

Install

Related posts