I was browsing through current/closed PRs and issues on the tc39 repo and it doesn't look like anyone has ever proposed bringing Ruby's [].pack and "".unpack (or Python's struct.pack) to JavaScript.
Of all tools I miss from other languages, this is probably one of the big ones - it's hard to recreate how much this tool can do in so few bytes. Has anyone ever brought up proposing to make it part of the language?
I see some existing NPM packages intended to backfill (for example this one mimics Python's: python-struct - npm). Is that reason enough not to ask for it to be included in the standard lib?
It's increasingly rare in the modern web era but it still exists (especially if you're writing web software backends that interact with systems like home automation, car starters, lower level mobile data, etc.).
If the spec says something like "each record contains a 16 bit id, followed by an 8 bit node count, followed by that many 16 bit node ids", that becomes as simple as:
Are there any popular libraries that provide this functionality on npm? If so, folks would likely have to be persuaded of the value of adding it to the language versus the library. If not, folks would likely think the api is too niche to be worth adding, and thus it might be good to start by creating such a library.