Commit Graph

16 Commits

Author SHA1 Message Date
8eaae0b86a Give encode/decode functions more descriptive names
- `encode()`: Renamed to `int_to_base58()`.
- `decode()`: Renamed to `base58_to_int()`.
- Maintain aliases of old function names for backwards compatibility.
2018-11-18 22:17:56 +00:00
David McCanney
8fe37d2db5 Update the test configuration
- Add additional node versions for Travis to test.
- Change var to const in mocha JS file.
2018-09-28 22:45:13 +01:00
David McCanney
39a0f67e35 Update the dependencies versions
- Require node 6 at a minimum to support the newer ES features.  Node
  version functionality determined via https://node.green.
- Update dev dependencies to their latest versions.  Mocha 3.4 relied
  on a version of growl with a known vulnerability.
- Fix the keywords section, this field is actually an array.
- Update eslint syntax to ES6.
2018-09-28 22:00:52 +01:00
5f6cc4c169 Use prettier for linting and code formatting via eslint 2017-08-20 19:23:27 +01:00
51d70572b1 Lint using semistandard 2017-07-09 19:41:48 +01:00
96b27b9505 Clean up test/.eslintrc.js 2017-07-09 19:30:50 +01:00
9edf3f1a2c Use soft-tabs instead of tabs, minor whitespace cleanup 2017-07-09 18:10:01 +01:00
louisbuchbinder
e029a93cf3 added tests 2017-07-09 09:23:17 -07:00
louisbuchbinder
280b2a7461 remove large or negative number vulnerability 2017-07-09 09:16:52 -07:00
louisbuchbinder
4ff09a0d77 refactor to vanilla js 2017-07-08 09:03:31 -07:00
6648b8668d Update test with slightly cleaner and safer code 2012-05-08 03:58:11 +01:00
33ae17b282 Enable string value to be passed to Base58.encode() 2012-04-19 23:25:56 +01:00
2235cafbc0 Fix typo in error thrown by Base58.decode() 2012-04-19 23:10:07 +01:00
0dbaf8676d Ensure encode throws an error if receiving anything else than a integer 2012-04-19 23:09:10 +01:00
fa8c5db9ed Require the root of the project in the test 2012-04-16 08:42:03 +01:00
ea136a08ff Initial import 2012-04-16 08:06:57 +01:00