Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Powered by Yamato Nagata
Can Convert Number up to 10 ** 72 - 1
from kanjize import number2kanji, kanji2number, Number, KanjizeConfiguration, KanjizeZero, KanjizeStyle
print(number2kanji(58076099))
# 五千八百七万六千九十九
print(number2kanji(58076099, config=KanjizeConfiguration(use_daiji=True)))
# 伍阡捌佰漆萬陸阡玖拾玖
print(kanji2number("五千八百七万六千九十九"))
# 58076099
print(kanji2number("223兆4千億4256万6千"))
# 223400042566000
print(kanji2number("223兆4000億4256万6000"))
# 223400042566000
print(number2kanji(223400042566000, config=KanjizeConfiguration(style=KanjizeStyle.MIXED, kanji_thousand=False)))
# 223兆4000億4256万6000
print(number2kanji(223400042566000, config=KanjizeConfiguration(style=KanjizeStyle.MIXED)))
# 223兆4千億4256万6千
print(number2kanji(20301, config=KanjizeConfiguration(style=KanjizeStyle.FLAT)))
# 二〇三〇一
print(number2kanji(20301, config=KanjizeConfiguration(style=KanjizeStyle.FLAT, zero=KanjizeZero.KANJI)))
# 二零三零一
print(number2kanji(0))
# 零
print(number2kanji(0, config=KanjizeConfiguration(zero=KanjizeZero.SIGN)))
# 〇
print((Number.from_kanji("223兆4千億4256万6千") * Number(2.3)).to_kanji(config=KanjizeConfiguration(style=KanjizeStyle.MIXED)))
# 446兆8千億8513万2千
FAQs
Easy converter between Kanji-Number and Integer
We found that kanjize demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.