UNPKG
@foxman/core
Version:
latest (1.2.2)
1.2.2
1.2.1
1.2.0
1.1.0
1.0.0
1.0.0-9
1.0.0-8
1.0.0-2
1.0.0-1
1.0.0-0
0.1.7
0.1.6
0.1.5
0.1.5-0
0.1.4
0.1.3
0.1.2
0.1.1
Extensible Mock Server
github.com/kaola-fed/foxman
kaola-fed/foxman
@foxman/core
/
lib
/
createRegistry.js
19 lines
(18 loc)
•
375 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module
.
exports
=
function
(
) {
const
stash = {};
return
{
$
: stash,
all
(
) {
return
stash; },
register
(
name, stuff
) { stash[name] = stuff; },
unregister
(
name
) {
delete
stash[name]; },
lookup
(
name
) {
return
stash[name]; } }; };