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
20082026
-
…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…
comment by feross · 2020-11-24 · in The Nintendo Switch uses my open source code -
…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…
comment by feross · 2020-11-24 · in The Nintendo Switch uses my open source code -
…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 -
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…
comment by xyst · 2020-11-23 · in The Nintendo Switch uses my open source code -
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 +…
comment by jsnell · 2020-11-23 · in The Nintendo Switch uses my open source code -
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…
comment by pavlov · 2020-11-23 · in The Nintendo Switch uses my open source code