V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
andyhu
V2EX  ›  Node.js

node 有没有比较好的可以对中文做 transliteration 的包?

  •  2
     
  •   andyhu · May 5, 2014 · 2825 views
    This topic created in 4375 days ago, the information mentioned may be changed or developed.
    比如说可以把文章标题转换为拼音,支持多语言的。
    试了下slug好像不支持中文。以前记得有一个模块,是从ruby一个包转过来的,忘了叫什么了
    1 replies    2014-05-05 06:18:26 +08:00
    andyhu
        1
    andyhu  
    OP
       May 5, 2014
    自问自答了,好像是stringex这个包,另外node-iconv也有translit选项,貌似可以
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2996 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 15:16 · PVG 23:16 · LAX 08:16 · JFK 11:16
    ♥ Do have faith in what you're doing.