UNPKG
mogwai
Version:
latest (0.2.6)
v0.1.0 (0.2.6)
0.2.6
0.2.5
0.2.4
0.2.3
0.2.2
0.2.1
0.2.0
0.1.0
0.0.1
0.0.0
Object-to-graph mapper for Node.js using Gremlin in Mongoose style (very alpha work)
gulthor/mogwai
mogwai
/
index.js
17 lines
(10 loc)
•
286 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
var
Mogwai
=
require
(
"./src/mogwai"
);
var
Singleton
= (
function
(
) {
var
instance =
null
;
function
Singleton
(
) {}
Singleton
.
get
=
function
(
) {
return
instance !==
null
? instance : instance =
new
Mogwai
(); };
return
Singleton
; })();
module
.
exports
=
Singleton
.
get
();