UNPKG
@gdsmack/startups
Version:
latest (2.0.0)
2.0.0
1.0.0
Allows user to read Startups.co articles on cli
github.com/gdsmack/startups
gdsmack/startups
@gdsmack/startups
/
lib
/
reader.js
21 lines
(13 loc)
•
299 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
var
str =
require
(
'string-to-stream'
);
var
pager =
require
(
'default-pager'
);
function
printArticles
(
text
){
str
(text).
pipe
(
pager
(
function
(
) {
console
.
log
(
'(END)'
); })); }
function
show
(
text
) {
printArticles
(text) }
module
.
exports
= {
show
: show };