safe-buffer
safe-buffer copied to clipboard
Safer Node.js Buffer API
Hey, i'm trying to use ViteJs for project. Since this is es6 only, the code errors out inside safe-buffer package `Buffer` is undefined here If we included this simple check,...
Update:: In my testing, I've managed to use nodejs/npm/bowserify to create a "safe-buffer.js" that might work in the browser. However, I don't have a clue (yet) as to how to...
In browser-based environments, require("buffer") will fail unless `buffer` is available as a dependency and can be provided by a bundler. This used to automatically be the case in e.g. older...
I think it have come to a time where we no longer need Safe-Buffer in modern day codes Think the npm package should be deprecated Encourage ppl to use Uint8Array,...
This took me way to long to figure out. In order to pass a Uint8Array to functions that need the normal node Buffer Uint8Array Type you must convert to unknown...
NodeJS typings are exposed in the [@types/node](https://www.npmjs.com/package/@types/node) package. Are there any objections to reuse them? The only thing that will be required from a user is to have `@types/node` installed.
GitHub hasn't supported the git protocol [since 2022](https://github.blog/security/application-security/improving-git-protocol-security-github/#no-more-unauthenticated-git), so this URL is broken. (This is a common error affecting many popular npm packages; I'm opening PRs on several projects to...
If I understand correctly, the vulnerability / trap / questionable design choice that this package exists to address was fixed in Node itself in 2017? At least, the [`new Buffer(size)`](https://nodejs.org/api/buffer.html#new-buffersize)...