Steve McIntyre wrote:
> I've seen ITPs for a massive set of tiny-looking node libraries go
> past on -devel in the last few months, so I thought it was about time
> I looked at one. I'm a bit worried by what I've seen, considering
> typical discussions in the past about really small packages.
>
> [...]
>
> tack:~/debian/ms.js$ wc -l index.js
> 111 index.js
>
> Am I missing something, or is the working code in this package really
> just 111 lines? Why isn't this bundled up into something more
> reasonable in size for the packaging system?
ITP: node-ansi-regex
$ git clone https://github.com/sindresorhus/ansi-regex
$ cat ansi-regex/index.js
'use strict';
module.exports = function () {
return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g;
};
ITP: node-quotemeta
$ git clone https://github.com/substack/quotemeta.git
$ cat quotemeta/index.js
module.exports = function (str) {
return String(str).replace(/(\W)/g, '\\$1');
};