# myfile.module.css
.btn{...}
I want to create new .js file as selectorPresent.js which has following things to do:
export function isSelectorPresent(filePathWithName, selector){
//Return true if class is present in myfile.module.css else false
}
Example : isSelectorPresent(../myfile.module.css., btn). I want to see true here. I checked document.styleSheets but it seems that it's in browser level and module.css changed the classnames there.