UNPKG
2chapi
Version:
latest (1.0.0)
1.0.0
2ch api
2chapi
/
test.js
8 lines
(5 loc)
•
152 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
global
.
api
=
require
(
'./index'
).
bind
(
this
);
run
().
catch
(
e
=>
{
console
.
log
(e.
message
);})
async
run
(
){
let
board =
await
api
(
'/b/index.json'
); }