Created
December 9, 2017 05:59
-
-
Save coetry/f2160f206ed2db8e928be255f8f94645 to your computer and use it in GitHub Desktop.
quran.json
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs') | |
const xml2js = require('xml2js') | |
const parser = new xml2js.Parser() | |
var Quran = undefined | |
fs.readFile(__dirname + '/quran.xml', (err, data) => { | |
parser.parseString(data, (err, result) => { | |
Quran = result | |
}) | |
}) | |
module.exports = () => ( | |
Quran | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment