Automatically generate service provider data

This commit is contained in:
Yarmo Mackenbach 2020-10-25 01:20:20 +02:00
parent f2fdbd3a8b
commit 39a74a6177

View file

@ -21,13 +21,10 @@ const list = [
'lobsters',
]
const data = {
dns: require('./serviceproviders/dns'),
xmpp: require('./serviceproviders/xmpp'),
twitter: require('./serviceproviders/twitter'),
hackernews: require('./serviceproviders/hackernews'),
lobsters: require('./serviceproviders/lobsters'),
}
const data = {}
list.forEach((item, i) => {
data[item] = require(`./serviceproviders/${item}`)
})
const match = (uri, opts) => {
let matches = [], sp