Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F191821
jsonify.js
cscott (C. Scott Ananian)
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
cscott
Jul 13 2015, 5:05 PM
2015-07-13 17:05:03 (UTC+0)
Size
253 B
Referenced Files
None
Subscribers
None
jsonify.js
View Options
#!/usr/bin/env node
var
fs
=
require
(
'fs'
);
var
filename
=
process
.
argv
[
2
];
var
titles
=
fs
.
readFileSync
(
filename
,
'utf8'
).
split
(
/[\n\r]+/
);
console
.
assert
(
titles
.
pop
()
===
''
);
// trailing newline.
console
.
log
(
JSON
.
stringify
(
titles
,
null
,
'\t'
));
File Metadata
Details
Attached
Mime Type
application/javascript
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
183128
Default Alt Text
jsonify.js (253 B)
Attached To
Mode
T101928: Refresh RT-testing test pages to change the mix of pages and add small set of pages from wikitionary and other projects
Attached
Detach File
Event Timeline
Log In to Comment