Tajweed is npm package for Tajweed and Buck
The npm package is to be used with the AlQuran.cloud and GlobalQuran.com APIs. They are made available so you may get the most out of the APIs.
Use the package manager npm to install Tajweed.
npm install tajweed
#or
yarn add tajweed
const Tajweed = require('tajweed').Tajweed
let string = "۞ ٱللَّهُ نُورُ [h:9421[ٱ][l[ل]سَّمَ[n[ـٰ]و[n[َٲ]"; //
let parseTajweed = new Tajweed()
let parseString = parseTajweed.parse("string",true)
console.log(parseString)
import './tajweed.css'
import tajweed, {Tajweed} from 'tajweed';
function App() {
let string = "۞ ٱللَّهُ نُورُ [h:9421[ٱ][l[ل]سَّمَ[n[ـٰ]و[n[َٲ]"; //
let parseTajweed = new Tajweed()
let parseString = parseTajweed.parse("string",true)
return (
<div dangerouslySetInnerHTML={{__html:parseString )}}></div>
);
}
export default App;
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.