isChineseMainland
A simple way to check if the user is in Chinese Mainland
import isChineseMainland from 'is-chinese-mainland'
isChineseMainland().then((yes) => {
console.info(yes ? 'Is Chinese!' : 'Not Chinese!')
})
A simple way to check if the user is in Chinese Mainland
import isChineseMainland from 'is-chinese-mainland'
isChineseMainland().then((yes) => {
console.info(yes ? 'Is Chinese!' : 'Not Chinese!')
})
0
1.1.0
MIT
2.89 kB
6