1.0.1-beta.0 • Published 3 years ago
ph-media v1.0.1-beta.0
🚀 Welcome to your new awesome project!
This project has been created using webpack-cli, you can now run
npm i ph-media
usage
import MatchMedia from 'ph-media'
MatchMedia.maxWidth("500px",(matches:boolean)=>{
document.body.innerHTML = "max-width:500px ?"+matches
})
MatchMedia.minWidth("500px",(matches:boolean)=>{
document.body.innerHTML = "min-width:500px ?"+matches
})