UNPKG

@zkochan/pnpm

Version:

A fast implementation of npm install

10 lines (8 loc) 181 B
'use strict'; module.exports = function (str, plural, count) { if (typeof plural === 'number') { count = plural; plural = str + 's'; } return count === 1 ? str : plural; };