How to use plur - 9 common examples

To help you get started, we’ve selected a few plur examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github sindresorhus / pageres / lib / util.js View on Github external
export function successMessage() {
	const stats = this.stats;
	const {screenshots, sizes, urls} = stats;
	const words = {
		screenshots: plur('screenshot', screenshots),
		sizes: plur('size', sizes),
		urls: plur('url', urls)
	};

	console.log(`\n${logSymbols.success} Generated ${screenshots} ${words.screenshots} from ${urls} ${words.urls} and ${sizes} ${words.sizes}`);
}
github sindresorhus / pageres / lib / index.js View on Github external
successMessage() {
		const {stats} = this;
		const {screenshots, sizes, urls} = stats;
		const words = {
			screenshots: plur('screenshot', screenshots),
			sizes: plur('size', sizes),
			urls: plur('url', urls)
		};

		console.log(`\n${logSymbols.success} Generated ${screenshots} ${words.screenshots} from ${urls} ${words.urls} and ${sizes} ${words.sizes}`);
	}
}
github sindresorhus / pageres / lib / index.js View on Github external
successMessage() {
		const {stats} = this;
		const {screenshots, sizes, urls} = stats;
		const words = {
			screenshots: plur('screenshot', screenshots),
			sizes: plur('size', sizes),
			urls: plur('url', urls)
		};

		console.log(`\n${logSymbols.success} Generated ${screenshots} ${words.screenshots} from ${urls} ${words.urls} and ${sizes} ${words.sizes}`);
	}
}
github acorn / twitter-bookmarks-search / content-script.js View on Github external
style={{
            margin: "4px 6px",
            fontSize: 12,
            fontStyle: "italic",
            textAlign: "right",
          }}
        >
          Provided by{" "}
          <a rel="noopener noreferrer" href="https://acornbookmarks.com">
            Acorn Bookmark Manager
          </a>
        
      
      {results ? (
        <div style="{{">
          Found {results.length} {plur("result", results.length)}
        </div>
      ) : null}

      {results ? results.map(tweet =&gt; ) : null}
    
  )
}

plur

Pluralize a word

MIT
Latest version published 3 years ago

Package Health Score

71 / 100
Full package analysis

Popular plur functions