![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
hanzenkaku
Advanced tools
Readme
A Hankaku-Zenkaku translator in JavaScript.
All functions are under the HanZenKaku
namespace.
HanZenKaku.h2z('コガイダン'); // コガイダン
HanZenKaku.z2h('コガイダン'); // コガイダン
HanZenKaku.hw2fw('dankogai'); // dankogai
HanZenKaku.fw2hw('dankogai'); // dankogai
HanZenKaku.fs2hs('dan kogai'); // dan kogai
HanZenKaku.hs2fs('dan kogai'); // dan kogai
HanZenKaku.h2k('こがいだん'); // コガイダン
HanZenKaku.k2h('コガイダン'); // こがいだん
If your environment supports ECMASCript 5, `String.prototype' is exteneded as follows:
'コガイダン'.toZenkaku(); // HanZenKaku.h2z('コガイダン')
'コガイダン'.toHankaku(); // HanZenKaku.z2h('コガイダン')
'dankogai'.toFullwidth(); // HanZenKaku.hw2fw('dankogai')
'dankogai'.toHalfwidth(); // HanZenKaku.fw2hw('dankogai')
'dan kogai'.toHalfwidthSpace(); // HanZenKaku.fs2hs('dan kogai')
'dan kogai'.toFullwidthSpace(); // HanZenKaku.hs2fs('dan kogai')
'こがいだん'.toKatakana(); // HanZenKaku.h2k('こがいだん')
'コガイダン'.toHiragana(); // HanZenKaku.k2h('コガイダン')
This is more convenient than the functional version since you can take advantage of the method chain like:
'dan kogai'.toHalfwidth().toHalfwidthSpace();
ES5 is required to prevent from String.prototype
from being
enumerated so built-in objects like String
are safely extended.
FAQs
Hankaku-Zenkaku Translator in JS
The npm package hanzenkaku receives a total of 3,044 weekly downloads. As such, hanzenkaku popularity was classified as popular.
We found that hanzenkaku 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.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.