GithubHelp home page GithubHelp logo

pyfl's Introduction

PYFL

https://circleci.com/gh/Nbsaw/pyfl/tree/master https://www.npmjs.com/package/pyfl https://www.npmjs.com/package/pyfl https://www.npmjs.com/package/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

pyfl's People

Contributors

yuxino avatar dependabot[bot] avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.