UNPKG
nodesu
Version:
latest (0.7.3)
0.7.3
0.7.2
0.7.1
0.7.0
0.6.7
0.6.6
0.6.5
0.6.4
0.6.3
0.6.2
0.6.1
0.6.0
0.5.0
0.4.0
0.3.0
0.2.1
0.2.0
0.1.3
0.1.2
0.1.1
a node.js osu! api wrapper
github.com/nicholastay/nodesu
nicholastay/nodesu
nodesu
/
examples
/
raw.js
13 lines
(11 loc)
•
263 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
'use strict'
;
const
Nodesu
=
require
(
'../nodesu'
);
const
config =
require
(
'./config.json'
);
const
api =
new
Nodesu
.
Client
(config.
apiKey
); api .
raw
(
'/get_user'
, {
u
:
'Nexerq'
,
type
:
'string'
}) .
then
(
d
=>
d[
0
]) .
then
(
console
.
log
);