package
regular expression for matching unicode category
npm install unicode-regexGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
regular expression for matching unicode category.
npm install unicode-regeximport unicode from 'unicode-regex'
const regex = unicode({ General_Category: ['Punctuation'] }).toRegExp()
regex.test('a') //=> false
regex.test('"') //=> true
regex.test('“') //=> truedeclare function unicode(categories: {
[category: string]: SubCategory[]
}): CharsetReturns a Charset for further processing, e.g. union, intersect, etc.
(Data from node-unicode-data)
# lint
yarn lint
# build
yarn build
# test
yarn testMIT © Ika
ikatyang
ikatyang@gmail.com
Estimated unpacked size across 2 packages.
896.8 kB
Includes dependencies.