quran-meta
Version:
Library with meta data and functionality related to Holy Quran
22 lines (15 loc) • 414 B
JavaScript
import { SurahList } from "./lists/surahList.js";
import { checkValidSurah } from "./validation.js";
//#region src/getSurahInfo.ts
/**
* Gets the metadata for the specified Surah.
*
* @param surah - The Surah to get the metadata for.
* @returns The metadata for the specified Surah.
*/
function getSurahInfo(surah) {
checkValidSurah(surah);
return SurahList[surah];
}
//#endregion
export { getSurahInfo };