UNPKG
grappling-hook
Version:
latest (3.0.0)
3.0.0
2.5.0
2.4.0
2.3.0
2.2.0
2.1.2
2.1.1
2.1.0
2.0.0
1.0.0
Pre/Post hooking mechanism
github.com/keystonejs/keystone-hooks
keystonejs/grappling-hook
grappling-hook
/
tests
/
fixtures
/
console.js
14 lines
(11 loc)
•
228 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
'use strict'
;
var
_ =
require
(
'lodash'
);
function
Console
(
) {
this
.
logs
= []; }
Console
.
prototype
.
log
=
function
(
) {
this
.
logs
.
push
(_.
toArray
(
arguments
).
join
(
' '
)); };
module
.
exports
=
function
(
) {
return
new
Console
(); };