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

app-registry

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

app-registry

A registry tool to set and share application services

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
73
decreased by-76.07%
Maintainers
1
Weekly downloads
 
Created
Source

App Registry

A registry tool to set and share application services.

var registry = require('app-registry');
function serviceOne() {
  console.log('This is the service one');
}

registry.register('firstService', serviceOne);


// Somewere in the app (in another file)
var theServiceINeed = registry.get('firstService');
theServiceINeed();

API

####getRegistered() Return the list of registered services.

####register(serviceName, service) Register a new service.

####get(serviceName) Get the service with name serviceName.
Throw an exception if the service doesn't exists.

####exists(serviceName) Check if the the service with name serviceName exists

####unset(serviceName) Unset if the the service with name serviceName from the registry.

####reset() Remove all services from registry. Useful in the test environment.

FAQs

Package last updated on 17 May 2016

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

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