FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Stop Leaking Names Like It’s Harmless
NewsWeb Development

Stop Leaking Names Like It’s Harmless

via Dev.to JavaScriptEka Prasetia3h ago

Masking emails? Obvious. Tokens? Critical. But names? Somehow they always sneak into logs, dashboards, exports—fully visible like it’s no big deal. Until it is . Names are still personal data, and once they’re everywhere, good luck cleaning that up. That’s exactly where mask-name comes in: a tiny, zero-dependency utility to mask names properly across Latin and CJK (Chinese/Japanese) scripts , without breaking readability or context. 1. Basic usage (Latin names) import { maskName } from " @ekaone/mask-name " ; maskName ( " Eka Prasetia " ); // → { masked: "E*a P*****ia", script: "latin", original: "Eka Prasetia" } You still recognize the person. You just don’t expose the full name to the world. That’s the sweet spot. 2. CJK support (this is where it gets interesting) maskName ( " 张伟 " ); // → { masked: "张*", script: "cjk", original: "张伟" } maskName ( " 田中さくら " , { locale : " ja " }); // → { masked: "田**くら", script: "cjk", original: "田中さくら" } No hacks, no weird splitting logic. It unders

Continue reading on Dev.to JavaScript

Opens in a new tab

Read Full Article
0 views

Related Articles

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario
News

Iran War Puts Global Energy Markets on the Brink of a Worst-Case Scenario

Wired • 5m ago

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…
News

The data from 400,000 developers exposes the grind myth — and shows what actually separates good…

Medium Programming • 31m ago

News

Why your next mobile app is probably headless

Lobsters • 38m ago

Major SteamOS update adds support for Steam Machine, even more third-party hardware
News

Major SteamOS update adds support for Steam Machine, even more third-party hardware

Ars Technica • 48m ago

News

Is Composer 2 in Cursor Any Good?

Medium Programming • 49m ago

Discover More Articles