UNPKG
youtube-data
Version:
latest (0.1.9)
0.1.9
0.1.8
0.1.3
0.1.2
0.1.1
0.1.0
0.0.3
0.0.2
0.0.1
Get YouTube data as JSON
jb55/youtube-data
youtube-data
/
example.coffee
15 lines
(10 loc)
•
237 B
text/coffeescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
yt =
require
(
'./lib/index'
) _ =
require
(
'underscore'
).
_
yt.
query
() .
videos
(
'monstercatmedia'
) .
results
(
50
) .
orderByPublished
() .
simple
() .
run
(err, data) ->
return
console
.
log
err
if
err
console
.
log
data.
feed
.
entry