left-pad
readable-stream
left-pad | readable-stream | |
---|---|---|
7 | 37 | |
1,178 | 1,015 | |
- | 0.1% | |
0.0 | 5.9 | |
about 5 years ago | 4 months ago | |
JavaScript | JavaScript | |
MIT License | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
left-pad
-
The Case for Frameworks
It's pretty easy to find that the example I gave isn't gamed... A cursory search on GitHub can find a couple examples like dotenv [1] and npm's cli [2] both use it via an older version of nodejs/readable-stream [3].
There's also the classic left-pad debacle - https://github.com/left-pad/left-pad/issues/4
[1] - https://github.com/motdotla/dotenv/blob/master/package-lock....
-
Serverless Containers vs Serverless Next.js SSR on AWS, GCP and Vercel
when using some other modern libraries like tailwind, you have to update the Next.js version carefully or you may have some errors following the Next.js update. Nothing new in javascript world, if something is working it's not guaranteed it will last :) It is important to really read the Next.js release notes as the base configuration may change in between the releases.
-
This resume got me an interview!
It's OK, it's reddit, it happens. I will say however that unless you are deploying to a windows server on premise somewhere you are using open source. (And soon even that won't be true because eventually Windows is going to be based on Linux.) I'm not asking people to give up their weekends or anything, but IMO if you consume open source, you have an obligation to contribute back something. Even if it's just reporting a bug on some library that you use.
-
XKCD 2347
Funny story, on the day that they unpublished it, the package.json states the license to be "WTFPL", which allows NPM to Do What The Fuck You Want To
-
Algorithmic Complexity of Left-Pad
It had been optimized (and deprecated) since then. See https://github.com/left-pad/left-pad/blob/master/index.js
- We’ve all been there
- Announcing Standard Ruby 1.0
readable-stream
-
How to convert Node.js stream callback functions into an Async Iterator
If it's a readable stream, you can just directly consume it with an async iterator: https://nodejs.org/api/stream.html#streams-compatibility-wit...
-
Buffered vs Streaming Data Transfer
Node.js Stream
-
What's New in Node.js 21
Note that the older Node.js streams API hasn't been deprecated or removed. It will co-exist with the new API, and it even provides a way to convert from a web stream and vice versa using the .fromWeb() and .toWeb() methods (both added in Node 17, although both methods still retain their experimental status).
-
pipesAreFun
Nodejs has piepes with its stream https://nodejs.org/api/stream.html
- Also keep in mind that a one line module always is more than one line of code
- Also keep in mind that a one line module always is more than one line of code. It's documentation, tests, and history in the repo.
-
[AskJS] Has anybody implemented and compiled ServiceWorker specification to a standalone executable?
You then want what's invoked by that event to be consumed as a Response. NodeJS has something to replicate this with stream consumers where you can do all the response.text() you normally do.
-
The Case for Frameworks
[3] - https://github.com/nodejs/readable-stream/
-
Running Go code inside a NodeJS app with WASM (Part 1/2, 2023)
First, we create a NodeJS ReadStream using fs.createWriteStream to open the test.log file in "append" mode. Then we start recursively looping using setTimeout. This simulates an application that logs text in the file at a variable rate. At each iteration:
-
Go-like channels in 10 lines of JavaScript
This needs a comparison with streams, which is the standard way to achieve this in Node.js land.
https://nodejs.org/api/stream.html
What are some alternatives?
featured
ffmpeg.wasm - FFmpeg for browser, powered by WebAssembly
RawRead - Platform-independent tool for creating, reading and erasing NoFS-formatted memory cards
node-ytdl-core - YouTube video downloader in javascript.
through2-concurrent - Simple Node.JS stream (streams2) Transform that runs the transform functions concurrently (with a set max concurrency)
Highland - High-level streams library for Node.js and the browser
peek-stream - Transform stream that lets you peek the first line before deciding how to parse it
through2 - Tiny wrapper around Node streams2 Transform to avoid explicit subclassing noise
graphicsmagick-stream
get-stream - Get a stream as a string, Buffer, ArrayBuffer or array
Node.CLI-Progress - :hourglass: easy to use progress-bar for command-line/terminal applications
concat-stream - writable stream that concatenates strings or data and calls a callback with the result