Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

lorem-ipsum

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lorem-ipsum - npm Package Compare versions

Comparing version 0.1.1 to 1.0.0

component.json

12

lib/generator.js

@@ -11,6 +11,5 @@ var generator = function() {

, words = require('./dictionary').words
, random = options.random || Math.random
, inflection = require('inflection');
, random = options.random || Math.random;
units = inflection.pluralize(units);
units = simplePluralize(units.toLowerCase());

@@ -104,2 +103,9 @@ var randomInteger = function(min, max) {

function simplePluralize(string) {
if (string.indexOf('s', string.length - 1) === -1) {
return string + 's';
}
return string;
}
module.exports = generator;
{
"name": "lorem-ipsum",
"version": "0.1.1",
"version": "1.0.0",
"description": "Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more.",

@@ -9,4 +9,3 @@ "author": "Nickolas Kenyeres <nkenyeres@gmail.com> (http://knicklabs.github.com)",

"dependencies": {
"optimist": "~0.3.5",
"inflection": "~1.2.6"
"optimist": "~0.3.5"
},

@@ -13,0 +12,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc