function webfigschemas(ip) {
return webfiglist(ip).then((list) =>
Promise.all(
list
.filter((i) => i.unique)
.map((i) => {
return new Promise((done) => {
let file = i.name
fetch(`https://${ip}/webfig/${file}`)
.then((req) => req.text())
.then((txt) => {
var results
eval(`results = ${txt}`)
done([ file, results ])
})
})
})
)
)
}