News for hackers. Stuff that matters.
Re:Standard library for JavaScript and Node.js by nmstoker on Saturday January 19, 2019 @05:00AM (#18946233)
So is this a way to help reduce the risk of leftpad type problems in NodeJS? https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
Re:Standard library for JavaScript and Node.js by chrismeller on Saturday January 19, 2019 @05:24AM (#18946309)
As another comment mentions, this is less of a standard library in the traditional sense and more a collection of functions the author finds useful in their specific line of work on a regular basis - it has a heavy emphasis on numerical and statistical functions that most people probably aren't going to use terribly often.

So in a generic way... maybe? It does offer a set of standard functions that aren't available natively, though personally I find Lodash to be much more of a traditional standard library than this.

In a specific way? No, as I don't see any kind of padding function and there will always be instances in which you need a small module that may be overlooked - that's the nature of any packaging system.

Re:Standard library for JavaScript and Node.js by pburckhardt on Saturday January 19, 2019 @01:28PM (#18948370)
padding functions and other string utilities are available under the "string" namespace: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...