Permalink
Browse files

add description to readme, update tape

  • Loading branch information...
1 parent 2ac6c7e commit 858429d0d80f662b9950e1747e3869e60cd19efc @maxogden maxogden committed Oct 17, 2013
Showing with 10 additions and 5 deletions.
  1. +6 −0 README.md
  2. +4 −5 package.json
View
@@ -6,6 +6,12 @@
buffer/typed array agnostic buffer operations.
+`bops` presents a JavaScript API for working with binary data that will work exactly the same in supported browsers and in node. due to the way that `Buffer` is implemented in node it is impossible to take code written against the `Buffer` API and make it work on top of binary data structures (Array Buffers and Typed Arrays) in the browser.
+
+instead you have to fake the API on top of `Object`, but `Object` isn't designed for holding raw binary data and will be really slow/memory inefficient for many common binary use cases (parsing files, writing files, etc).
+
+use `bops` in place of `Buffer` or `Uint8Array` to make your binary JS code fast + portable.
+
```javascript
var binary = require('bops')
View
@@ -31,7 +31,7 @@
"license": "MIT",
"gitHead": "11f41e69b1ab4507027ac162981913b268445b4a",
"devDependencies": {
- "tape": "~1.0.1"
+ "tape": "~2.0.0"
},
"dependencies": {
"base64-js": "0.0.2",
@@ -40,11 +40,10 @@
"testling": {
"files": "test/index.js",
"browsers": [
- "ie/10..latest",
- "chrome/20..latest",
- "firefox/15..latest",
- "safari/latest",
+ "firefox/15..nightly",
+ "chrome/20..canary",
"opera/11.6..latest",
+ "safari/4..latest",
"iphone/6",
"ipad/6"
]

0 comments on commit 858429d

Please sign in to comment.