Skypager Registry
A Registry is a queryable directory of functions.
Registries can be used for a variety of purposes, such as dependency injection, asynchronous module loading using something like Webpack's require.ensure
or System.import
functionality, or for building a database of plugins or middlewares that can be dynamically required using different kinds of application logic at runtime.
Installation
npm install skypager-registry --save
Usage Examples
Building a registry of React Components
const componentIndexes = { const filePaths = glob return filePaths
Other Examples
For people familiar with react-native
for example, there is the AppRegistry
const MyScreen = <View>Hello World</View> AppRegistry