Hacker GitHub

← All repos

feross/safe-buffer

View on GitHub ↗ ★ 346 JavaScript

Safer Node.js Buffer API

7 mentions on Hacker News by 5 people: 1 story, 6 comments · first 2020-11-23 · latest 2020-11-24

Mentions per year 7 mentions · busiest year 2020 (7)
20082026
  1. …and the creation of the `Buffer.from()` and `Buffer.alloc()` APIs. There is an explanation here: https://github.com/feross/safe-buffer#why-is-buffer-unsafe I created `safe-buffer` as a demonstration of how the API could be fixed to be…
  2. …and the creation of the `Buffer.from()` and `Buffer.alloc()` APIs. There is an explanation here: https://github.com/feross/safe-buffer#why-is-buffer-unsafe I created `safe-buffer` as a demonstration of how the API could be fixed to be…
  3. …his code with an MIT license. He couldn't have made his intentions of free/fair use more explicit: https://github.com/feross/safe-buffer/blob/master/LICENSE
    comment by dan_quixote · 2020-11-23 · in The Nintendo Switch uses my open source code
  4. https://github.com/feross/safe-buffer Looks like one of those "utility" modules that get used in a project because there's no proper standard library for node.js At least it's better than the infamous "left-pad" module, which was just a…
  5. This appears to be the entirety of the code: https://github.com/feross/safe-buffer/blob/master/index.js It is 65 lines of Javascript that's mostly boilerplate. I doubt it saved them significantly more than the cost of manufacturing +…
  6. I think you’re overestimating the package in question. It’s about 50 significant lines of code total: https://github.com/feross/safe-buffer/blob/master/index.js It’s a tiny API wrapper in JavaScript for older Node versions. While useful…