npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

uyghur-char-utils

v2.0.5

Published

维吾尔语,哈萨克语,柯尔克孜语基本区和扩展区转换函数类库

Downloads

2

Readme

UyghurCharUtils

项目介绍

维吾尔语,哈萨克语,柯尔克孜语基本区和扩展区转换函数类库
v1版本已完成的语言:javascript,php,csharp,vb.net,mysql,java,golang
v1版本地址:https://gitee.com/kerindax/UyghurCharUtils/tree/v1.x/
v2版本项目地址:https://gitee.com/kerindax/UyghurCharUtils

贡献者

Kerindax,Sherer,Bulut

联系

[email protected]

使用说明

  1. Basic2Extend(source){} 基本区 转换 扩展区
  2. Extend2Basic(source){} 扩展区 转换 基本区
  3. Basic2RExtend(source){} 基本区 转换 反向扩展区
  4. RExtend2Basic(source){} 反向扩展区 转换 基本区
克隆仓库

git clone [email protected]:kerindax/UyghurCharUtils.git

安装依赖

npm install uyghur-char-utils

CDN 引入
<script src="https://unpkg.com/uyghur-char-utils"></script>

例子

  • nodejs
  const UyghurCharUtils = require("uyghur-char-utils");
  var utils = new UyghurCharUtils();
  var source = "سالام JS";

  var target1 = utils.Basic2Extend(source); //基本区 转换 扩展区
  var target2 = utils.Extend2Basic(target1); //扩展区 转换 基本区

  var target3 = utils.Basic2RExtend(source); //基本区 转换 反向扩展区
  var target4 = utils.RExtend2Basic(target3); //反向扩展区 转换 基本区

  console.log(target1);
  console.log(target2);

  console.log(target3);
  console.log(target4);
  • browser
<!DOCTYPE html>
<html>
    <head>
        <title>Hello JS</title>
    </head>
    <body>
        <script
        type="text/javascript"
        src="https://unpkg.com/uyghur-char-utils"
        charset="utf-8"
        ></script>
        <script>
        var utils = new UyghurCharUtils();
        var source = "سالام JS";

        var target1 = utils.Basic2Extend(source); //基本区 转换 扩展区
        var target2 = utils.Extend2Basic(target1); //扩展区 转换 基本区

        var target3 = utils.Basic2RExtend(source); //基本区 转换 反向扩展区
        var target4 = utils.RExtend2Basic(target3); //反向扩展区 转换 基本区

        console.log(target1);
        console.log(target2);

        console.log(target3);
        console.log(target4);
        </script>
    </body>
</html>
  • php
	header("Content-type: text/html; charset=utf-8");
	require_once "UyghurCharUtils.php";
  $utils = new UyghurCharUtils();
  $source = "سالام PHP";

  $target1 = $utils->Basic2Extend($source);//基本区 转换 扩展区
  $target2 = $utils->Extend2Basic($target1);//扩展区 转换 基本区

  $target3 = $utils->Basic2RExtend($source);//基本区 转换 反向扩展区
  $target4 = $utils->RExtend2Basic($target3);//反向扩展区 转换 基本区
	
	echo $target1."<br/>";
	echo $target2."<br/>";

	echo $target3."<br/>";
	echo $target4."<br/>";
  • c#
static void Main(string[] args)
{
  Uyghur.CharUtils utils = new Uyghur.CharUtils();
  string source = "سالام C#";
  string target1 = utils.Basic2Extend(source);//基本区 转换 扩展区
  string target2 = utils.Extend2Basic(target1);//扩展区 转换 基本区

  string target3 = utils.Basic2RExtend(source);//基本区 转换 反向扩展区
  string target4 = utils.RExtend2Basic(target3);//反向扩展区 转换 基本区

  MessageBox.Show(target1 + "\n" + target2 + "\n" + target3 + "\n" + target4);
}
  • vb.net
Sub Main()
    Dim utils As New Uyghur.CharUtils
    Dim source As String = "سالام VB.NET"

    Dim target1 As String = utils.Basic2Extend(source) '基本区 转换 扩展区
    Dim target2 As String = utils.Extend2Basic(target1) '扩展区 转换 基本区

    Dim target3 As String = utils.Basic2RExtend(source) '基本区 转换 反向扩展区
    Dim target4 As String = utils.RExtend2Basic(target3) '反向扩展区 转换 基本区
    MsgBox(target1 + vbCrLf + target2 + vbCrLf + target3 + vbCrLf + target4)
End Sub
  • java
public class demo {
    public static void main(String[] args) {
        UyghurCharUtils utils = new UyghurCharUtils();
        String source = "سالام Java";

        String target1 = utils.Basic2Extend(source);//基本区 转换 扩展区
        String target2 = utils.Extend2Basic(target1);//基本区 转换 扩展区

        String target3 = utils.Basic2RExtend(source);//基本区 转换 扩展区
        String target4 = utils.RExtend2Basic(target3);//基本区 转换 扩展区
        System.out.println(target1 + "\n" + target2 + "\n" + target3 + "\n" + target4);
    }
}