Package Exports
- pyfl
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (pyfl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
PYFL
一个并不轻量级(~20kb)的 Web 端获取拼音首缩写.大部分字都可以测试通过
PREFACE
在做某个项目的时候要用到了,现在把这个库开源出来。魔改自pinyinjs。
INSTALL
yarn add pyfl
USAGE
只支持传入字符串参数。如果该字符串不存在对应的拼音会反回原字符。
import pyfl from 'pyfl';
pyfl('喵'); // M
pyfl('好笑吗跟傻子一样整天就知道哈哈哈哈哈哈哈')); // HXMGSZYYZTJZDHHHHHHH
pyfl('罤夶繙着洗'); // TBFZX
pyfl('Pure'); // Pure
pyfl('Made by ❤'); // Made by ❤
FAQ
如何在直接在 Node 端引用 ?
const pyfl = require("pyfl").default;
OTHER
如果这个库对你有帮助的话,希望能在 github 上给个 star。
License
MIT © NBSAW