Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bahamas10/node-dvorak
Convert between the Qwerty and Dvorak keyboard layout
https://github.com/bahamas10/node-dvorak
Last synced: 2 months ago
JSON representation
Convert between the Qwerty and Dvorak keyboard layout
- Host: GitHub
- URL: https://github.com/bahamas10/node-dvorak
- Owner: bahamas10
- Created: 2012-06-15T00:37:46.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2012-07-07T06:16:36.000Z (over 12 years ago)
- Last Synced: 2024-10-07T11:19:52.782Z (3 months ago)
- Language: JavaScript
- Size: 111 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
dvorak
======Convert between the Qwerty and Dvorak keyboard layout
Install
------Install locally to use as a module
npm install dvorak
Install globally to use the command-line tool `dvorak`
npm install -g dvorak
Usage
-----as a module
``` js
var dvorak = require('dvorak');
```as a command-line tool (conversion to dvorak is assumed)
~$ echo 'asdf' | dvorak
aoeu
~$ echo 'aoeu' | dvorak qwerty
asdfExample
-------``` js
> var dvorak = require('dvorak')
undefined
> dvorak.toQwerty('aoeu')
'asdf'
> dvorak.toDvorak('asdf')
'aoeu'
> dvorak.toDvorak('Gqm ktrglu sl a x,dokt vdtnsaoh a; gy gqm sl a h.soav patsfk')
'I\'m typing on a qwerty keyboard as if i\'m on a dvorak layout'
```Tests
-----dave @ [ bahamas10 :: (Darwin) ] ~/dev/node-dvorak $ npm test
> [email protected] test /Users/dave/dev/node-dvorak
> node tests/test.jsTesting length
Testing conversion from "Dvorak Test" toQwerty
Testing conversion from "Qwerty Test" toDvorak
Testing full conversion cycle with "Reverse Test"
Testing Symbols with "Symbol Test ! @ # $ % ^ & * ( ) { } [ ] ?"License
-------MIT Licensed