niwaringo / moji Goto Github PK
View Code? Open in Web Editor NEW半角全角変換ライブラリ
License: MIT License
半角全角変換ライブラリ
License: MIT License
文字の並び順が変わらない形でfilterで複数の文字種を指定できるようにする
2017年9月4日現在発行されている[email protected]
は動作しません。
yarn add moji
# ├─ [email protected]
nvm use 0
# Now using node v0.12.13 (npm v2.15.0)
node
require('moji')('test').convert('HEtoZE')
# TypeError: Cannot read property 'start' of undefined
# at Moji._mojisyuType (/Users/59naga/Downloads/hoge/node_modules/moji/src/moji.core.js:184:16)
# at Moji.convert (/Users/59naga/Downloads/hoge/node_modules/moji/src/moji.core.js:32:14)
# at repl:1:25
# at REPLServer.defaultEval (repl.js:132:27)
# at bound (domain.js:291:14)
# at REPLServer.runBound [as eval] (domain.js:304:12)
# at REPLServer.<anonymous> (repl.js:279:12)
# at REPLServer.emit (events.js:107:17)
# at REPLServer.Interface._onLine (readline.js:214:10)
# at REPLServer.Interface._line (readline.js:553:8)
現在のレポジトリ a1511d1 を直接npm install
する場合は動作します。
npm install https://github.com/niwaringo/moji
# [email protected] node_modules/moji
node
require('moji')('test').convert('HEtoZE')
# { _str: 'test',
# ...
npmパッケージの更新をお願い致します。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.