# custom-libraries
**Repository Path**: mirrors_WebReflection/custom-libraries
## Basic Information
- **Project Name**: custom-libraries
- **Description**: A customElements like registry for user-land libraries
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-08-19
- **Last Updated**: 2026-07-18
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# customLibraries
[](https://travis-ci.com/WebReflection/custom-libraries) [](https://coveralls.io/github/WebReflection/custom-libraries?branch=master) 
**Social Media Photo by [Matteo Maretto](https://unsplash.com/@matmaphotos) on [Unsplash](https://unsplash.com/)**
A [customElements](https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry) like registry for user-land libraries.
Based on [Some Web Components Hints](https://medium.com/@WebReflection/some-web-components-hint-75dce339ac6b) post idea, but without polluting the `customElements` registry.
Compatible down to IE10, or even IE9 (with `setTimeout` polyfill), and every other browser, for a total of 272 bytes once minified and gzipped.
```js
import {define, get, whenDefined} from 'custom-libraries';
// const {define, get, whenDefined} = require('custom-libraries');
//
whenDefined('my-lib').then(myLib => {
// myLib is defined and passed along
// get('my-lib') === myLib
});
setTimeout(() => {
define('my-lib', {any: 'value'});
});
```