UNPKG
iocat
Version:
latest (0.4.1)
0.4.1
0.4.0
0.3.0
0.2.0
0.0.5
0.0.4
0.0.2
WebSocket netcat with Socket.io support
github.com/moul/iocat
moul/iocat
iocat
/
src
/
Base.coffee
11 lines
(8 loc)
•
277 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
{
EventEmitter
} =
require
'events'
class
Base
extends
EventEmitter
log:
(args...) =>
return
false
unless
@options
.verbose name = @
?.
constructor?.toString?().match(
/function\s*(\w+)/
)
?[
1
] |
|
'ApiBase'
console.log
"
#{name}
>"
, args...
module
.exports =
Base
:
Base