File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 8
8
- 6
9
9
- ' stable'
10
10
11
- dist : trusty
11
+ cache : yarn
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const parser = require ( 'xml2json ' )
3
+ const parser = require ( 'fast-xml-parser ' )
4
4
const api = require ( './api' )
5
5
6
6
module . exports = function ( word , opt ) {
7
7
if ( ! opt ) opt = { }
8
8
9
9
return api
10
10
. fetchTerm ( word , opt )
11
- . then ( xml => parser . toJson ( xml , { object : true } ) )
11
+ . then ( xml => parser . parse ( xml ) )
12
12
}
Original file line number Diff line number Diff line change 29
29
"license" : " MIT" ,
30
30
"dependencies" : {
31
31
"chalk" : " ^2.0.0" ,
32
+ "fast-xml-parser" : " ^2.6.0" ,
32
33
"meow" : " ^3.7.0" ,
33
34
"node-fetch" : " ^1.6.3" ,
34
35
"ora" : " ^1.3.0" ,
35
- "update-notifier" : " ^2.2.0" ,
36
- "xml2json" : " ^0.11.0"
36
+ "update-notifier" : " ^2.2.0"
37
37
},
38
38
"devDependencies" : {
39
39
"ava" : " ^0.21.0" ,
You can’t perform that action at this time.
0 commit comments