
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
asianbreak
Advanced tools
Line Break for East Asian People
const asianbreak = require('asianbreak');
asianbreak(`
そのとき汽車はだんだん川からはなれて崖の上を通るようになりました。
向う岸もまた黒いいろの崖が川の岸を下流に下るにしたがってだんだん高くなって行くのでした。
そしてちらっと大きなとうもろこしの木を見ました。
その葉はぐるぐるに縮れ葉の下にはもう美しい緑いろの大きな苞が赤い毛を吐いて
真珠のような実もちらっと見えたのでした。
`);
This module exposes single asianbreak(texts[, options])
function.
An array of string which supporse to constitute Inline Formatting Context of CSS2.1.
For this example:
<p>
日本語は、
<ruby><rb>漢</rb><rb>字</rb><rp>(</rp><rt>かん</rt><rt>じ</rt><rp>)</rp></ruby>
を使用する。
</p>
only <p>
creates inline formatting context and <rp>
and <rt>
is supporsed to be removed
from inline context tree (in modern browsers), and texts
should be:
const texts = ['\n 日本語は、\n ', '', '漢', '', '字', '', '', '\n を使用する。\n'];
then you'll get:
const result = asianbreak(texts);
console.log(result); // ['\n 日本語は、', '', '漢', '', '字', '', '', 'を使用する。\n'];
If you restored it to original HTML, it should be:
<p>
日本語は、<ruby><rb>漢</rb><rb>字</rb><rp>(</rp><rt>かん</rt><rt>じ</rt><rp>)</rp></ruby>を使用する。
</p>
How great deed is this!
If a string is supplied, it assume that context is constituted by single segment, and returns transformed segment as string.
Unimplemented
FAQs
Line Break for East Asian People
The npm package asianbreak receives a total of 5 weekly downloads. As such, asianbreak popularity was classified as not popular.
We found that asianbreak 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.