Git Product home page Git Product logo

chinese-filename-to-pinyin's Introduction

Chinese-Filename-to-Pinyin

一款中文文件名转换拼音字母的命令行工具。

使用场景:
UI 设计师,给出很多切图文件,文件名是中文的,
前端工程师在去使用的时候,一般会是转换为英文字母的文件名。
此工具,能批量处理,把文件夹中的中文文件名转为汉字拼音文件名,

示例:

拼音.png ==> pin-yin.png  
苍井空.png ==> cang-jing-kong.png  

如何使用?

// install
npm i chinese-filename-to-pinyin -g

// run
// 命令行进入你要执行文件名转换的目录下,执行命令
pinyin
// 执行完成后,程序会告诉你处理好的文件在哪儿~


// windows,假如你在这个路径: C:\images\ ,直接打开命令行执行命令 pinyin
// 产出的文件会在 C:\images\dist-**timestamp** (一个带时间戳的文件夹)

除了使用pinyin命令,你还可以使用to-pinyin命令。

chinese-filename-to-pinyin's People

Contributors

zlzdp avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

mackxu

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.