3 ms·
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/ https://www.theregiste
by nmstoker 8y ago
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/ https://www.theregister.co.uk/2016/03/23/npm_left_pad_chaos/
- chrismeller 8y agoAs 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.
- pburckhardt 8y agopadding functions and other string utilities are available under the "string" namespace: https://github.com/stdlib-js/stdlib/tree/develop/lib/node_modules/%40stdlib/string https://github.com/stdlib-js/stdlib/tree/develop/lib/node_mo...