![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
JS将中文转化为拼音首字母字符串的小插件
fork自Alfred-kai/C2Pin
修改了获取首字母函数(firstChar):
英文和数字原样输出
小写转大写
Direct download
Download the script here and include it (unless you are packaging scripts somehow else):
<script src="/path/to/c2py/index.js"></script>
Package Managers
c2py supports npm and Bower under the name c2py
Import the library
import c2py from 'c2py'
Transfer Chinese to Pinyin with first letter
c2py.firstChar()
Transfer Chinese to Pinyin with full letter
c2py.fullChar()
If there is any danger of a conflict with the namespace c2py, the noConflict method will allow you to define a new namespace and preserve the original one.
// Assign the c2py api to a different variable and restore the original "window.c2py"
var c2pyCopy = c2py.noConflict();
c2py.firstChar();
FAQs
JS将中文转化为拼音首字母字符串的小插件
We found that c2py demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.