103 Commits (master)
 

Author SHA1 Message Date
Luke Childs 441889defe Compare buffers properly 8 years ago
Luke Childs 8b7e6ed7ce Use time-span for benchmarking, don't roll our own 8 years ago
Luke Childs 5691257655 Keep xo happy 8 years ago
Luke Childs cd35584bff Add benchmark results table 8 years ago
Luke Childs da0b33703b Fix decode sync benchmark 8 years ago
Luke Childs 45ab550d51 Use array for benchmark bytes 8 years ago
Luke Childs 87b244ecd5 Use async/await for benchmark script 8 years ago
Luke Childs a88eaa6d35 Add benchmark script 8 years ago
Luke Childs 65df89c3fa Incorrect input type should be a TypeError 8 years ago
Luke Childs 934ff8641f Make new b64 behaviour clearer 8 years ago
Luke Childs c9cb0aaa27 2.0.0 8 years ago
Luke Childs fb8bf49020 Document new b64 functionality 8 years ago
Luke Childs 18fd7b16ff Update tests to reflect new b64 behaviour 8 years ago
Luke Childs 97a6430b90 Infer method for b64 to call based on input type 8 years ago
Luke Childs f0b9838f6c Add usage section to readme 8 years ago
Luke Childs 995206af4e 1.0.0 8 years ago
Luke Childs d49a776d98 Update description 8 years ago
Luke Childs 215c2cd2b2 Prepend option names with opts. in error messages 8 years ago
Luke Childs cfcfea7f17 Don't just check errors, check error message too. 8 years ago
Luke Childs 0f827a5d7d Test b64 rejects Promise if method is not 'encode' or 'decode' 8 years ago
Luke Childs 752a65c17e Reject b64 promise if method isn't enocde/decode 8 years ago
Luke Childs 2cb8252f69 Get rid of redundant type.js tests and inclide them in each method testfile 8 years ago
Luke Childs 5666dce306 Test b64 calls b64[opts.method] 8 years ago
Luke Childs ebc161d1b9 b64 aliases to opts.method 8 years ago
Luke Childs 99ed6cefd6 Move chunkSize logic into shared function 8 years ago
Luke Childs aefcc83004 0.0.1 8 years ago
Luke Childs 3e22537cef Test b64.encode rejects Promise if input is not a buffer 8 years ago
Luke Childs e5f899e757 Remove string encode/decode tests 8 years ago
Luke Childs 181ca9ac34 Don't handle string encode/decode 8 years ago
Luke Childs d86b062103 Test b64.decode accepts string encoding option 8 years ago
Luke Childs 96c23dfa88 Allow base64.decode to accept string encoding option 8 years ago
Luke Childs 3d0669ebd5 Fix b64.decode chunkSize 0 test 8 years ago
Luke Childs c9802369ea Test b64.decode rejects Promise if input is not a string 8 years ago
Luke Childs 14b035427f Test b64.decode rejects Promise if chunkSize is 0 8 years ago
Luke Childs 6153ea9421 Test b64.decode rounds chunks up to multiples of 4 8 years ago
Luke Childs d4029360dd Test b64.decode decodes correctly in chunks 8 years ago
Luke Childs f0241d308e Test b64.decode decodes Base64 to buffer 8 years ago
Luke Childs 2604f5ca2a Test b64.decode returns a Promise 8 years ago
Luke Childs b9840dc90b Add decode method 8 years ago
Luke Childs fd7f8b3e6e Test b64.encode accepts string encoding option 8 years ago
Luke Childs 20581ef531 Test b64.encode returns a Promise 8 years ago
Luke Childs 07d2eb6921 Test b64.encode rejects Promise if chunkSize is 0 8 years ago
Luke Childs 2a370b6d20 Reject/throw if chunkSize is 0 instead of quietly rounding up 8 years ago
Luke Childs ecf9a0e99a Test b64.encode rounds chunks up to multiples of 3 8 years ago
Luke Childs 38c201af2e Test b64.encode encodes correctly in chunks 8 years ago
Luke Childs 06cfc87a66 Use eslint-config-xo-lukechilds 8 years ago
Luke Childs b37d07225c Move test values into reusable fixtures module 8 years ago
Luke Childs fb49009535 Test b64.encode encodes buffer to Base64 8 years ago
Luke Childs 57adbb2889 Test b64.encode encodes string to Base64 8 years ago
Luke Childs ae8c693701 Test b64.encode is a function 8 years ago