【文件属性】:
文件名称:node-xml2js-promise:xml2js的Promise包装器
文件大小:6KB
文件格式:ZIP
更新时间:2021-05-15 22:43:19
node promise xml2js JavaScript
node-xml2js-承诺
xml2js的Promise包装器。
安装
npm install node-xml2js-promise
用法
const xml2js_promise = require ( 'node-xml2js-promise' ) ;
xml2js_promise ( xml , options ) . then ( function ( result ) {
console . log ( result ) ;
} ) ;
// or use ES7 async/await
( async ( ) => {
let result = await xml2js_promise ( xml , options ) ;
console . log ( result )
} ) ( ) ;
【文件预览】:
node-xml2js-promise-master
----xml2js-promise.js(179B)
----test.js(655B)
----package.json(667B)
----LICENSE(1KB)
----package-lock.json(9KB)
----.gitignore(890B)
----.circleci()
--------config.yml(427B)
----README.md(771B)
----.gitattributes(66B)