alebelcor / gigs-adapter-stackoverflow-jobs

☕ A gigs adapter for Stack Overflow's job board

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Replace xml2json

alebelcor opened this issue · comments

Replace xml2json with something that doesn't require native compilation.

Like xml2js or some other package. It can even be a callback-style helper, it can be promisified using pify.

Once this is done, make sure the added stuff (for compilation) to .travis.yml is removed.

Fixed by 82d7da5

I'm still not happy with the output.

Replace xml2js with feedme.

const Feedme = require('feedme');
const parser = new Feedme(true);

parser.write(fs.readFileSync('./rss.xml'));

const json = parser.done();

This was fixed right before 1.0.0 in 5dbc8ad