【文件属性】:
文件名称:to-unicode:将字符串转换为unicode
文件大小:140KB
文件格式:ZIP
更新时间:2021-05-17 02:48:26
JavaScript
到UNICODE!
将字母换成等价的字母。
您知道,是为了给机器人更酷的文字或其他内容。
(待办事项:为什么半破?)
安装
npm install to-unicode
例子
var str = 'capitalism'
var unicody = toUnicode(str, 'inverted')
var flipper = '(╯°□°)╯︵ '
console.log(flipper + unicody.split("").reverse().join(""))
=> (╯°□°)╯ɯsıןɐʇıdɐɔ
var ransom_note = 'give me allll of the cookies, or else!'
var scrambled = ransom_note.split("").map(function(letter){
return toUnic
【文件预览】:
to-unicode-gh-pages
----.gitignore(13B)
----package.json(877B)
----.travis.yml(48B)
----cheers.jpg(128KB)
----cmd.js(1KB)
----index.js(469B)
----test.js(802B)
----fonts.js(2KB)
----README.md(2KB)
----www()
--------main.css(0B)
--------demo.js(637B)
--------bundle.js(10KB)
----index.html(600B)