Loading...
Loading...
Count Korean text deterministically with exact grapheme, line, and byte contracts for self-intros and form limits.
npx skill4agent add nomadamas/k-skill korean-character-countIntl.SegmenterCRLFLFCRU+2028U+2029neisdefaultIntl.Segmenter("ko", { granularity: "grapheme" })Buffer.byteLength(text, "utf8")01CRLF21neisdefaultdefault3B1B2Bnodescripts/korean_character_count.jsnode scripts/korean_character_count.jsdefaultneisjsontextnode scripts/korean_character_count.js --text "가나다"
node scripts/korean_character_count.js --text $'첫 줄\r\n둘째 줄🙂'
node scripts/korean_character_count.js --text $'첫 줄\n둘째 줄🙂' --profile neis --format text
node scripts/korean_character_count.js --file ./essay.txt --profile default
cat essay.txt | node scripts/korean_character_count.js --stdin --profile neisdefaultneisdefaultneisnode scripts/korean_character_count.js --helpBuffer.byteLength