Kirill Fomichev
e04b0b4217
Remove init function
8 years ago
Kirill Fomichev
a5f9ec7d8a
Move lib/b64.js to index.js
8 years ago
Kirill Fomichev
718f83bfaf
Add byteLength
8 years ago
Kirill Fomichev
9f8478b3c5
code style
9 years ago
Feross Aboukhadijeh
08bf2d57e3
code style
9 years ago
Feross Aboukhadijeh
1215b36b4d
init(): cache code.length
9 years ago
Feross Aboukhadijeh
a8064c78c3
don't shadow global window.length value
9 years ago
Feross Aboukhadijeh
45e6df6d6b
fromByteArray(): cache uint8.length value
9 years ago
Feross Aboukhadijeh
ba71e7de64
replace str.charAt() with str[]
9 years ago
Feross Aboukhadijeh
2a030f9767
add init() function to prevent leaking `i` and `code` in closures
9 years ago
Feross Aboukhadijeh
ea8923aceb
code style
9 years ago
Feross Aboukhadijeh
d544569378
toByteArray(): use cached length value
9 years ago
Feross Aboukhadijeh
a2b900f1c3
inline decode() in toByteArray()
9 years ago
Feross Aboukhadijeh
2bef8c60c2
inline encode() in fromByteArray()
9 years ago
Feross Aboukhadijeh
fe138bedbd
inline push() in toByteArray()
9 years ago
Feross Aboukhadijeh
4b1309ee6f
make internal/external naming consistent
9 years ago
Feross Aboukhadijeh
370cdf6eb5
remove self-executing function
if folks miss the ability to drop this into the browser, open an issue
and we’ll add a built file to the repo
9 years ago
Feross Aboukhadijeh
036ce50e47
Fix IE8 support
9 years ago
Gregg Tavares
81dc9862e4
fix to big data test
9 years ago
Feross Aboukhadijeh
2f12c12e39
move lookup variable inside closure
Fix #17
9 years ago
Feross Aboukhadijeh
2e27163fc3
style
preparing base64-js for standard v3, which now requires statements to
always use braces, except when they're on a single line.
10 years ago
Feross Aboukhadijeh
7e14c2eaa1
JavaScript Standard Style
https://github.com/feross/standard
10 years ago
Jesse Tane
e747cd5965
decode url-safe style base64
10 years ago
Michael Mayer
1966fa20bf
Fixes (UglifyJs) lint warnings
Fix: Symbol exports is declared but not referenced [lib/b64.js:3,12]
Fix: Symbol ZERO is declared but not referenced [lib/b64.js:10,5]
Fix: Symbol res is declared but not referenced [test/convert.js:14,1]
11 years ago
Feross Aboukhadijeh
df74bf0a17
consistent style
11 years ago
Feross Aboukhadijeh
32124f47e1
throw an error object
11 years ago
Feross Aboukhadijeh
ac3efd3a29
Fix regression: Old browser support
11 years ago
Dominic Tarr
96c7a98bfb
base64-js uses tabs, sorry!
11 years ago
Dominic Tarr
3381ae47a4
remove indexOf
11 years ago
Dominic Tarr
c9ac169fff
use hardcoded ranges instead of indexOf
11 years ago
Dominic Tarr
3deb9b4365
use typedarray, about 15% faster
11 years ago
Feross Aboukhadijeh
3f0fb6edf4
IE6-8 support
11 years ago
T. Jameson Little
b7e378cc27
Oops, apparently repo version is different than npm version
11 years ago
Jameson Little
5ac9f99e97
Test succeeds
13 years ago