WikiJs is a node.js library which serves as an interface to Wikipedia (or any MediaWiki).
npm install wikijs
You can run these commands in order to build and test WikiJs:
git clone firstname.lastname@example.org:dijs/wiki.gitcd wikinpm installnpm run buildnpm test
;// const wiki = require('wikijs').default;; // Bruce Wayne
In order for webpack to build wikijs properly, you must add an option to your webpack configuration file. Documentation
You can use the API options configuration:
Read more about Cross Domain Requests here
The code Wikipedia uses for infobox data is strange and complex. So I have split the parsing code into another library. You can find it here.
We not only parse out the information, but also try to transform the data into a convenient structure for data processing.
I always welcome help. Please just stick to the lint rules and write tests with each feature/fix.