From: Feross Aboukhadijeh Date: Sat, 5 Apr 2014 18:46:24 +0000 (-0700) Subject: Update README.md X-Git-Url: https://zoso.dev/?a=commitdiff_plain;h=3ffe2bbb859eff295857f8ac3e3bd7e3c460cf32;p=buffer.git Update README.md --- diff --git a/README.md b/README.md index fe7d8bf..4074eff 100644 --- a/README.md +++ b/README.md @@ -31,10 +31,11 @@ supported methods. If you want to use this module directly without browserify, install it: -``` +```bash npm install buffer ``` + ## usage As mentioned before, when you `require('buffer')` or use the `Buffer` global in [browserify](http://github.com/substack/node-browserify), this module will automatically @@ -42,7 +43,7 @@ be included in your bundle so you get a `Buffer` API that actually works in the If you're depending on this module explicitly, then require it like this: -``` +```js var Buffer = require('buffer/').Buffer // use the npm module, not the core module! ```