Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Convert between the Qwerty and Dvorak keyboard layout
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bin
tests
.gitignore
README.md
index.js
package.json

README.md

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

var dvorak = require('dvorak');

as a command-line tool (conversion to dvorak is assumed)

~$ echo 'asdf' | dvorak
aoeu
~$ echo 'aoeu' | dvorak qwerty
asdf

Example

> 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

> dvorak@0.0.0 test /Users/dave/dev/node-dvorak
> node tests/test.js

Testing 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

Something went wrong with that request. Please try again.