Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
contains-chinese
Advanced tools
Readme
const containsChinese = require('contains-chinese');
let t = containsChinese('香港 is cool'); // true
let f = containsChinese('홍콩'); // false - not Chinese
This package provides a way to check whether a string contains any Chinese
text. The function will return true
if there is at least one Chinese
character in the string.
is-chinese
Another package called is-chinese
will return false if the string contains
at least one non-Chinese character, for example Welcome to 香港
will
result in false
.
In contrast, this package will return true
for such text containing mixed
Chinese and non-Chinese text.
containsChinese
- returns true
if the string has any Chinese characters.containsChinese.HAN_REGEX
- contains the regex used for this check.If you have any comments, contact me here: https://github.com/catcher-in-the-try/
FAQs
Checks whether the input string contains any Chinese text (at least one character). Works with Traditional and Simplified. Unlike the is-chinese package, returns `true` even if the string contains mixed Chinese and non-Chinese characters.
The npm package contains-chinese receives a total of 376 weekly downloads. As such, contains-chinese popularity was classified as not popular.
We found that contains-chinese demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.