Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 17KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410
  1. # buffer [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url]
  2. [travis-image]: https://img.shields.io/travis/feross/buffer/master.svg
  3. [travis-url]: https://travis-ci.org/feross/buffer
  4. [npm-image]: https://img.shields.io/npm/v/buffer.svg
  5. [npm-url]: https://npmjs.org/package/buffer
  6. [downloads-image]: https://img.shields.io/npm/dm/buffer.svg
  7. [downloads-url]: https://npmjs.org/package/buffer
  8. [standard-image]: https://img.shields.io/badge/code_style-standard-brightgreen.svg
  9. [standard-url]: https://standardjs.com
  10. #### The buffer module from [node.js](https://nodejs.org/), for the browser.
  11. [![saucelabs][saucelabs-image]][saucelabs-url]
  12. [saucelabs-image]: https://saucelabs.com/browser-matrix/buffer.svg
  13. [saucelabs-url]: https://saucelabs.com/u/buffer
  14. With [browserify](http://browserify.org), simply `require('buffer')` or use the `Buffer` global and you will get this module.
  15. The goal is to provide an API that is 100% identical to
  16. [node's Buffer API](https://nodejs.org/api/buffer.html). Read the
  17. [official docs](https://nodejs.org/api/buffer.html) for the full list of properties,
  18. instance methods, and class methods that are supported.
  19. ## features
  20. - Manipulate binary data like a boss, in all browsers!
  21. - Super fast. Backed by Typed Arrays (`Uint8Array`/`ArrayBuffer`, not `Object`)
  22. - Extremely small bundle size (**6.75KB minified + gzipped**, 51.9KB with comments)
  23. - Excellent browser support (Chrome, Firefox, Edge, Safari 9+, IE 11, iOS 9+, Android, etc.)
  24. - Preserves Node API exactly, with one minor difference (see below)
  25. - Square-bracket `buf[4]` notation works!
  26. - Does not modify any browser prototypes or put anything on `window`
  27. - Comprehensive test suite (including all buffer tests from node.js core)
  28. ## install
  29. To use this module directly (without browserify), install it:
  30. ```bash
  31. npm install buffer
  32. ```
  33. This module was previously called **native-buffer-browserify**, but please use **buffer**
  34. from now on.
  35. If you do not use a bundler, you can use the [standalone script](https://bundle.run/buffer).
  36. ## usage
  37. The module's API is identical to node's `Buffer` API. Read the
  38. [official docs](https://nodejs.org/api/buffer.html) for the full list of properties,
  39. instance methods, and class methods that are supported.
  40. As mentioned above, `require('buffer')` or use the `Buffer` global with
  41. [browserify](http://browserify.org) and this module will automatically be included
  42. in your bundle. Almost any npm module will work in the browser, even if it assumes that
  43. the node `Buffer` API will be available.
  44. To depend on this module explicitly (without browserify), require it like this:
  45. ```js
  46. var Buffer = require('buffer/').Buffer // note: the trailing slash is important!
  47. ```
  48. To require this module explicitly, use `require('buffer/')` which tells the node.js module
  49. lookup algorithm (also used by browserify) to use the **npm module** named `buffer`
  50. instead of the **node.js core** module named `buffer`!
  51. ## how does it work?
  52. The Buffer constructor returns instances of `Uint8Array` that have their prototype
  53. changed to `Buffer.prototype`. Furthermore, `Buffer` is a subclass of `Uint8Array`,
  54. so the returned instances will have all the node `Buffer` methods and the
  55. `Uint8Array` methods. Square bracket notation works as expected -- it returns a
  56. single octet.
  57. The `Uint8Array` prototype remains unmodified.
  58. ## tracking the latest node api
  59. This module tracks the Buffer API in the latest (unstable) version of node.js. The Buffer
  60. API is considered **stable** in the
  61. [node stability index](https://nodejs.org/docs/latest/api/documentation.html#documentation_stability_index),
  62. so it is unlikely that there will ever be breaking changes.
  63. Nonetheless, when/if the Buffer API changes in node, this module's API will change
  64. accordingly.
  65. ## related packages
  66. - [`buffer-reverse`](https://www.npmjs.com/package/buffer-reverse) - Reverse a buffer
  67. - [`buffer-xor`](https://www.npmjs.com/package/buffer-xor) - Bitwise xor a buffer
  68. - [`is-buffer`](https://www.npmjs.com/package/is-buffer) - Determine if an object is a Buffer without including the whole `Buffer` package
  69. ## conversion packages
  70. ### convert typed array to buffer
  71. Use [`typedarray-to-buffer`](https://www.npmjs.com/package/typedarray-to-buffer) to convert any kind of typed array to a `Buffer`. Does not perform a copy, so it's super fast.
  72. ### convert buffer to typed array
  73. `Buffer` is a subclass of `Uint8Array` (which is a typed array). So there is no need to explicitly convert to typed array. Just use the buffer as a `Uint8Array`.
  74. ### convert blob to buffer
  75. Use [`blob-to-buffer`](https://www.npmjs.com/package/blob-to-buffer) to convert a `Blob` to a `Buffer`.
  76. ### convert buffer to blob
  77. To convert a `Buffer` to a `Blob`, use the `Blob` constructor:
  78. ```js
  79. var blob = new Blob([ buffer ])
  80. ```
  81. Optionally, specify a mimetype:
  82. ```js
  83. var blob = new Blob([ buffer ], { type: 'text/html' })
  84. ```
  85. ### convert arraybuffer to buffer
  86. To convert an `ArrayBuffer` to a `Buffer`, use the `Buffer.from` function. Does not perform a copy, so it's super fast.
  87. ```js
  88. var buffer = Buffer.from(arrayBuffer)
  89. ```
  90. ### convert buffer to arraybuffer
  91. To convert a `Buffer` to an `ArrayBuffer`, use the `.buffer` property (which is present on all `Uint8Array` objects):
  92. ```js
  93. var arrayBuffer = buffer.buffer.slice(
  94. buffer.byteOffset, buffer.byteOffset + buffer.byteLength
  95. )
  96. ```
  97. Alternatively, use the [`to-arraybuffer`](https://www.npmjs.com/package/to-arraybuffer) module.
  98. ## performance
  99. See perf tests in `/perf`.
  100. `BrowserBuffer` is the browser `buffer` module (this repo). `Uint8Array` is included as a
  101. sanity check (since `BrowserBuffer` uses `Uint8Array` under the hood, `Uint8Array` will
  102. always be at least a bit faster). Finally, `NodeBuffer` is the node.js buffer module,
  103. which is included to compare against.
  104. NOTE: Performance has improved since these benchmarks were taken. PR welcome to update the README.
  105. ### Chrome 38
  106. | Method | Operations | Accuracy | Sampled | Fastest |
  107. |:-------|:-----------|:---------|:--------|:-------:|
  108. | BrowserBuffer#bracket-notation | 11,457,464 ops/sec | ±0.86% | 66 | ✓ |
  109. | Uint8Array#bracket-notation | 10,824,332 ops/sec | ±0.74% | 65 | |
  110. | | | | |
  111. | BrowserBuffer#concat | 450,532 ops/sec | ±0.76% | 68 | |
  112. | Uint8Array#concat | 1,368,911 ops/sec | ±1.50% | 62 | ✓ |
  113. | | | | |
  114. | BrowserBuffer#copy(16000) | 903,001 ops/sec | ±0.96% | 67 | |
  115. | Uint8Array#copy(16000) | 1,422,441 ops/sec | ±1.04% | 66 | ✓ |
  116. | | | | |
  117. | BrowserBuffer#copy(16) | 11,431,358 ops/sec | ±0.46% | 69 | |
  118. | Uint8Array#copy(16) | 13,944,163 ops/sec | ±1.12% | 68 | ✓ |
  119. | | | | |
  120. | BrowserBuffer#new(16000) | 106,329 ops/sec | ±6.70% | 44 | |
  121. | Uint8Array#new(16000) | 131,001 ops/sec | ±2.85% | 31 | ✓ |
  122. | | | | |
  123. | BrowserBuffer#new(16) | 1,554,491 ops/sec | ±1.60% | 65 | |
  124. | Uint8Array#new(16) | 6,623,930 ops/sec | ±1.66% | 65 | ✓ |
  125. | | | | |
  126. | BrowserBuffer#readDoubleBE | 112,830 ops/sec | ±0.51% | 69 | ✓ |
  127. | DataView#getFloat64 | 93,500 ops/sec | ±0.57% | 68 | |
  128. | | | | |
  129. | BrowserBuffer#readFloatBE | 146,678 ops/sec | ±0.95% | 68 | ✓ |
  130. | DataView#getFloat32 | 99,311 ops/sec | ±0.41% | 67 | |
  131. | | | | |
  132. | BrowserBuffer#readUInt32LE | 843,214 ops/sec | ±0.70% | 69 | ✓ |
  133. | DataView#getUint32 | 103,024 ops/sec | ±0.64% | 67 | |
  134. | | | | |
  135. | BrowserBuffer#slice | 1,013,941 ops/sec | ±0.75% | 67 | |
  136. | Uint8Array#subarray | 1,903,928 ops/sec | ±0.53% | 67 | ✓ |
  137. | | | | |
  138. | BrowserBuffer#writeFloatBE | 61,387 ops/sec | ±0.90% | 67 | |
  139. | DataView#setFloat32 | 141,249 ops/sec | ±0.40% | 66 | ✓ |
  140. ### Firefox 33
  141. | Method | Operations | Accuracy | Sampled | Fastest |
  142. |:-------|:-----------|:---------|:--------|:-------:|
  143. | BrowserBuffer#bracket-notation | 20,800,421 ops/sec | ±1.84% | 60 | |
  144. | Uint8Array#bracket-notation | 20,826,235 ops/sec | ±2.02% | 61 | ✓ |
  145. | | | | |
  146. | BrowserBuffer#concat | 153,076 ops/sec | ±2.32% | 61 | |
  147. | Uint8Array#concat | 1,255,674 ops/sec | ±8.65% | 52 | ✓ |
  148. | | | | |
  149. | BrowserBuffer#copy(16000) | 1,105,312 ops/sec | ±1.16% | 63 | |
  150. | Uint8Array#copy(16000) | 1,615,911 ops/sec | ±0.55% | 66 | ✓ |
  151. | | | | |
  152. | BrowserBuffer#copy(16) | 16,357,599 ops/sec | ±0.73% | 68 | |
  153. | Uint8Array#copy(16) | 31,436,281 ops/sec | ±1.05% | 68 | ✓ |
  154. | | | | |
  155. | BrowserBuffer#new(16000) | 52,995 ops/sec | ±6.01% | 35 | |
  156. | Uint8Array#new(16000) | 87,686 ops/sec | ±5.68% | 45 | ✓ |
  157. | | | | |
  158. | BrowserBuffer#new(16) | 252,031 ops/sec | ±1.61% | 66 | |
  159. | Uint8Array#new(16) | 8,477,026 ops/sec | ±0.49% | 68 | ✓ |
  160. | | | | |
  161. | BrowserBuffer#readDoubleBE | 99,871 ops/sec | ±0.41% | 69 | |
  162. | DataView#getFloat64 | 285,663 ops/sec | ±0.70% | 68 | ✓ |
  163. | | | | |
  164. | BrowserBuffer#readFloatBE | 115,540 ops/sec | ±0.42% | 69 | |
  165. | DataView#getFloat32 | 288,722 ops/sec | ±0.82% | 68 | ✓ |
  166. | | | | |
  167. | BrowserBuffer#readUInt32LE | 633,926 ops/sec | ±1.08% | 67 | ✓ |
  168. | DataView#getUint32 | 294,808 ops/sec | ±0.79% | 64 | |
  169. | | | | |
  170. | BrowserBuffer#slice | 349,425 ops/sec | ±0.46% | 69 | |
  171. | Uint8Array#subarray | 5,965,819 ops/sec | ±0.60% | 65 | ✓ |
  172. | | | | |
  173. | BrowserBuffer#writeFloatBE | 59,980 ops/sec | ±0.41% | 67 | |
  174. | DataView#setFloat32 | 317,634 ops/sec | ±0.63% | 68 | ✓ |
  175. ### Safari 8
  176. | Method | Operations | Accuracy | Sampled | Fastest |
  177. |:-------|:-----------|:---------|:--------|:-------:|
  178. | BrowserBuffer#bracket-notation | 10,279,729 ops/sec | ±2.25% | 56 | ✓ |
  179. | Uint8Array#bracket-notation | 10,030,767 ops/sec | ±2.23% | 59 | |
  180. | | | | |
  181. | BrowserBuffer#concat | 144,138 ops/sec | ±1.38% | 65 | |
  182. | Uint8Array#concat | 4,950,764 ops/sec | ±1.70% | 63 | ✓ |
  183. | | | | |
  184. | BrowserBuffer#copy(16000) | 1,058,548 ops/sec | ±1.51% | 64 | |
  185. | Uint8Array#copy(16000) | 1,409,666 ops/sec | ±1.17% | 65 | ✓ |
  186. | | | | |
  187. | BrowserBuffer#copy(16) | 6,282,529 ops/sec | ±1.88% | 58 | |
  188. | Uint8Array#copy(16) | 11,907,128 ops/sec | ±2.87% | 58 | ✓ |
  189. | | | | |
  190. | BrowserBuffer#new(16000) | 101,663 ops/sec | ±3.89% | 57 | |
  191. | Uint8Array#new(16000) | 22,050,818 ops/sec | ±6.51% | 46 | ✓ |
  192. | | | | |
  193. | BrowserBuffer#new(16) | 176,072 ops/sec | ±2.13% | 64 | |
  194. | Uint8Array#new(16) | 24,385,731 ops/sec | ±5.01% | 51 | ✓ |
  195. | | | | |
  196. | BrowserBuffer#readDoubleBE | 41,341 ops/sec | ±1.06% | 67 | |
  197. | DataView#getFloat64 | 322,280 ops/sec | ±0.84% | 68 | ✓ |
  198. | | | | |
  199. | BrowserBuffer#readFloatBE | 46,141 ops/sec | ±1.06% | 65 | |
  200. | DataView#getFloat32 | 337,025 ops/sec | ±0.43% | 69 | ✓ |
  201. | | | | |
  202. | BrowserBuffer#readUInt32LE | 151,551 ops/sec | ±1.02% | 66 | |
  203. | DataView#getUint32 | 308,278 ops/sec | ±0.94% | 67 | ✓ |
  204. | | | | |
  205. | BrowserBuffer#slice | 197,365 ops/sec | ±0.95% | 66 | |
  206. | Uint8Array#subarray | 9,558,024 ops/sec | ±3.08% | 58 | ✓ |
  207. | | | | |
  208. | BrowserBuffer#writeFloatBE | 17,518 ops/sec | ±1.03% | 63 | |
  209. | DataView#setFloat32 | 319,751 ops/sec | ±0.48% | 68 | ✓ |
  210. ### Node 0.11.14
  211. | Method | Operations | Accuracy | Sampled | Fastest |
  212. |:-------|:-----------|:---------|:--------|:-------:|
  213. | BrowserBuffer#bracket-notation | 10,489,828 ops/sec | ±3.25% | 90 | |
  214. | Uint8Array#bracket-notation | 10,534,884 ops/sec | ±0.81% | 92 | ✓ |
  215. | NodeBuffer#bracket-notation | 10,389,910 ops/sec | ±0.97% | 87 | |
  216. | | | | |
  217. | BrowserBuffer#concat | 487,830 ops/sec | ±2.58% | 88 | |
  218. | Uint8Array#concat | 1,814,327 ops/sec | ±1.28% | 88 | ✓ |
  219. | NodeBuffer#concat | 1,636,523 ops/sec | ±1.88% | 73 | |
  220. | | | | |
  221. | BrowserBuffer#copy(16000) | 1,073,665 ops/sec | ±0.77% | 90 | |
  222. | Uint8Array#copy(16000) | 1,348,517 ops/sec | ±0.84% | 89 | ✓ |
  223. | NodeBuffer#copy(16000) | 1,289,533 ops/sec | ±0.82% | 93 | |
  224. | | | | |
  225. | BrowserBuffer#copy(16) | 12,782,706 ops/sec | ±0.74% | 85 | |
  226. | Uint8Array#copy(16) | 14,180,427 ops/sec | ±0.93% | 92 | ✓ |
  227. | NodeBuffer#copy(16) | 11,083,134 ops/sec | ±1.06% | 89 | |
  228. | | | | |
  229. | BrowserBuffer#new(16000) | 141,678 ops/sec | ±3.30% | 67 | |
  230. | Uint8Array#new(16000) | 161,491 ops/sec | ±2.96% | 60 | |
  231. | NodeBuffer#new(16000) | 292,699 ops/sec | ±3.20% | 55 | ✓ |
  232. | | | | |
  233. | BrowserBuffer#new(16) | 1,655,466 ops/sec | ±2.41% | 82 | |
  234. | Uint8Array#new(16) | 14,399,926 ops/sec | ±0.91% | 94 | ✓ |
  235. | NodeBuffer#new(16) | 3,894,696 ops/sec | ±0.88% | 92 | |
  236. | | | | |
  237. | BrowserBuffer#readDoubleBE | 109,582 ops/sec | ±0.75% | 93 | ✓ |
  238. | DataView#getFloat64 | 91,235 ops/sec | ±0.81% | 90 | |
  239. | NodeBuffer#readDoubleBE | 88,593 ops/sec | ±0.96% | 81 | |
  240. | | | | |
  241. | BrowserBuffer#readFloatBE | 139,854 ops/sec | ±1.03% | 85 | ✓ |
  242. | DataView#getFloat32 | 98,744 ops/sec | ±0.80% | 89 | |
  243. | NodeBuffer#readFloatBE | 92,769 ops/sec | ±0.94% | 93 | |
  244. | | | | |
  245. | BrowserBuffer#readUInt32LE | 710,861 ops/sec | ±0.82% | 92 | |
  246. | DataView#getUint32 | 117,893 ops/sec | ±0.84% | 91 | |
  247. | NodeBuffer#readUInt32LE | 851,412 ops/sec | ±0.72% | 93 | ✓ |
  248. | | | | |
  249. | BrowserBuffer#slice | 1,673,877 ops/sec | ±0.73% | 94 | |
  250. | Uint8Array#subarray | 6,919,243 ops/sec | ±0.67% | 90 | ✓ |
  251. | NodeBuffer#slice | 4,617,604 ops/sec | ±0.79% | 93 | |
  252. | | | | |
  253. | BrowserBuffer#writeFloatBE | 66,011 ops/sec | ±0.75% | 93 | |
  254. | DataView#setFloat32 | 127,760 ops/sec | ±0.72% | 93 | ✓ |
  255. | NodeBuffer#writeFloatBE | 103,352 ops/sec | ±0.83% | 93 | |
  256. ### iojs 1.8.1
  257. | Method | Operations | Accuracy | Sampled | Fastest |
  258. |:-------|:-----------|:---------|:--------|:-------:|
  259. | BrowserBuffer#bracket-notation | 10,990,488 ops/sec | ±1.11% | 91 | |
  260. | Uint8Array#bracket-notation | 11,268,757 ops/sec | ±0.65% | 97 | |
  261. | NodeBuffer#bracket-notation | 11,353,260 ops/sec | ±0.83% | 94 | ✓ |
  262. | | | | |
  263. | BrowserBuffer#concat | 378,954 ops/sec | ±0.74% | 94 | |
  264. | Uint8Array#concat | 1,358,288 ops/sec | ±0.97% | 87 | |
  265. | NodeBuffer#concat | 1,934,050 ops/sec | ±1.11% | 78 | ✓ |
  266. | | | | |
  267. | BrowserBuffer#copy(16000) | 894,538 ops/sec | ±0.56% | 84 | |
  268. | Uint8Array#copy(16000) | 1,442,656 ops/sec | ±0.71% | 96 | |
  269. | NodeBuffer#copy(16000) | 1,457,898 ops/sec | ±0.53% | 92 | ✓ |
  270. | | | | |
  271. | BrowserBuffer#copy(16) | 12,870,457 ops/sec | ±0.67% | 95 | |
  272. | Uint8Array#copy(16) | 16,643,989 ops/sec | ±0.61% | 93 | ✓ |
  273. | NodeBuffer#copy(16) | 14,885,848 ops/sec | ±0.74% | 94 | |
  274. | | | | |
  275. | BrowserBuffer#new(16000) | 109,264 ops/sec | ±4.21% | 63 | |
  276. | Uint8Array#new(16000) | 138,916 ops/sec | ±1.87% | 61 | |
  277. | NodeBuffer#new(16000) | 281,449 ops/sec | ±3.58% | 51 | ✓ |
  278. | | | | |
  279. | BrowserBuffer#new(16) | 1,362,935 ops/sec | ±0.56% | 99 | |
  280. | Uint8Array#new(16) | 6,193,090 ops/sec | ±0.64% | 95 | ✓ |
  281. | NodeBuffer#new(16) | 4,745,425 ops/sec | ±1.56% | 90 | |
  282. | | | | |
  283. | BrowserBuffer#readDoubleBE | 118,127 ops/sec | ±0.59% | 93 | ✓ |
  284. | DataView#getFloat64 | 107,332 ops/sec | ±0.65% | 91 | |
  285. | NodeBuffer#readDoubleBE | 116,274 ops/sec | ±0.94% | 95 | |
  286. | | | | |
  287. | BrowserBuffer#readFloatBE | 150,326 ops/sec | ±0.58% | 95 | ✓ |
  288. | DataView#getFloat32 | 110,541 ops/sec | ±0.57% | 98 | |
  289. | NodeBuffer#readFloatBE | 121,599 ops/sec | ±0.60% | 87 | |
  290. | | | | |
  291. | BrowserBuffer#readUInt32LE | 814,147 ops/sec | ±0.62% | 93 | |
  292. | DataView#getUint32 | 137,592 ops/sec | ±0.64% | 90 | |
  293. | NodeBuffer#readUInt32LE | 931,650 ops/sec | ±0.71% | 96 | ✓ |
  294. | | | | |
  295. | BrowserBuffer#slice | 878,590 ops/sec | ±0.68% | 93 | |
  296. | Uint8Array#subarray | 2,843,308 ops/sec | ±1.02% | 90 | |
  297. | NodeBuffer#slice | 4,998,316 ops/sec | ±0.68% | 90 | ✓ |
  298. | | | | |
  299. | BrowserBuffer#writeFloatBE | 65,927 ops/sec | ±0.74% | 93 | |
  300. | DataView#setFloat32 | 139,823 ops/sec | ±0.97% | 89 | ✓ |
  301. | NodeBuffer#writeFloatBE | 135,763 ops/sec | ±0.65% | 96 | |
  302. | | | | |
  303. ## Testing the project
  304. First, install the project:
  305. npm install
  306. Then, to run tests in Node.js, run:
  307. npm run test-node
  308. To test locally in a browser, you can run:
  309. npm run test-browser-es5-local # For ES5 browsers that don't support ES6
  310. npm run test-browser-es6-local # For ES6 compliant browsers
  311. This will print out a URL that you can then open in a browser to run the tests, using [airtap](https://www.npmjs.com/package/airtap).
  312. To run automated browser tests using Saucelabs, ensure that your `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY` environment variables are set, then run:
  313. npm test
  314. This is what's run in Travis, to check against various browsers. The list of browsers is kept in the `bin/airtap-es5.yml` and `bin/airtap-es6.yml` files.
  315. ## JavaScript Standard Style
  316. This module uses [JavaScript Standard Style](https://github.com/feross/standard).
  317. [![JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)
  318. To test that the code conforms to the style, `npm install` and run:
  319. ./node_modules/.bin/standard
  320. ## credit
  321. This was originally forked from [buffer-browserify](https://github.com/toots/buffer-browserify).
  322. ## Security Policies and Procedures
  323. The `buffer` team and community take all security bugs in `buffer` seriously. Please see our [security policies and procedures](https://github.com/feross/security) document to learn how to report issues.
  324. ## license
  325. MIT. Copyright (C) [Feross Aboukhadijeh](http://feross.org), and other contributors. Originally forked from an MIT-licensed module by Romain Beauxis.