22 Commits

Author SHA1 Message Date
Guy Halford-Thompson
194ba6cae5 Added travis-ci icon 2012-06-04 05:29:43 -07:00
Guy Halford-Thompson
209e7020e8 Merge pull request #2 from shtylman/master
complete rework of api and code cleanup
2012-06-04 05:19:09 -07:00
Roman Shtylman
6ad05c5a7c README markdown formatting 2012-06-03 18:29:06 -04:00
Roman Shtylman
10381a3a88 update README formatting for API 2012-06-03 18:27:32 -04:00
Roman Shtylman
022ef8d128 add migrating from 1.x to 2.x to readme 2012-06-03 18:15:56 -04:00
Roman Shtylman
6c4ac1e94d cleanup README
- move license section to separate file
- remove examples, api documentation is enough for now
2012-06-03 18:01:30 -04:00
Roman Shtylman
ad29941dab add google auth example/details to readme
Basic example on using `thirty-two` module to do base32 encoding and
creating a barcode URI
2012-06-03 15:57:43 -04:00
Roman Shtylman
6324431069 update .gitignore
- add node_modules
- remove other cruft
2012-06-01 16:00:40 -04:00
Roman Shtylman
cfa2ecddb1 rework api
make two subobjects `hotp` and `totp` with gen and verify methods
2012-06-01 00:33:55 -04:00
Roman Shtylman
e633d857fd update readme with new argument names 2012-06-01 00:08:40 -04:00
Roman Shtylman
940938dd81 package.json typo 2012-06-01 00:07:29 -04:00
Roman Shtylman
103874b752 remove thirty-two dependency
The code does not use it, if a person wants to base32 encode, they can
just install the package themselves and use it.
2012-06-01 00:06:43 -04:00
Roman Shtylman
9344bad009 rename arguments
There is no need for single letter arguments, they just make reading the
code more confusing. The spec uses them to avoid typing longer words all
over the place but we don't have as much code to produce.

- P -> token
- W -> window
- K -> key
- C -> counter
- T -> time
2012-06-01 00:04:21 -04:00
Roman Shtylman
3fd84e5a7e rename lib/nopt.js -> index.js
simple project don't need lib folder
2012-05-31 23:51:19 -04:00
Roman Shtylman
f78995f498 update README
api changes
2012-05-31 23:48:03 -04:00
Roman Shtylman
cf96266a20 code cleanup
- remove callbacks (functions are sync)
- update tests for removed callbacks
- minimize some code duplication
2012-05-31 23:40:34 -04:00
Roman Shtylman
4475c95ecb remove err argument from functions
It was never used and is not really the node.js way to do things.
2012-05-31 19:03:58 -04:00
Roman Shtylman
190d29070c remove Nopt object and just export directly 2012-05-31 18:57:41 -04:00
Roman Shtylman
5221c05ac9 support node >= 0.4.10 2012-05-31 18:55:14 -04:00
Roman Shtylman
9f68f20826 use package thirty-two for base32 encoding/decoding 2012-05-31 18:54:35 -04:00
Guy Halford-Thompson
85b2e89fe7 Added .gitignore 2011-10-02 18:14:37 -07:00
Guy Halford-Thompson
dac00027c4 Commit for version 1.1.2 2011-10-02 18:08:30 -07:00