lorem-ipsum
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -5,3 +5,3 @@ { | ||
"description": "Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more.", | ||
"version": "1.0.3", | ||
"version": "1.0.2", | ||
"keywords": [], | ||
@@ -8,0 +8,0 @@ "dependencies": {}, |
@@ -7,9 +7,20 @@ var generator = function() { | ||
, sentenceUpperBound = options.sentenceUpperBound || 15 | ||
, paragraphLowerBound = options.paragraphLowerBound || 3 | ||
, paragraphUpperBound = options.paragraphUpperBound || 7 | ||
, format = options.format || 'plain' | ||
, paragraphLowerBound = options.paragraphLowerBound || 3 | ||
, paragraphUpperBound = options.paragraphUpperBound || 7 | ||
, format = options.format || 'plain' | ||
, words = options.words || require('./dictionary').words | ||
, random = options.random || Math.random | ||
, suffix = options.suffix || require('os').EOL; | ||
, suffix = options.suffix; | ||
if (!suffix) { | ||
var isNode = typeof module !== 'undefined' && module.exports; | ||
var isReactNative = typeof product !== 'undefined' && product.navigator === 'ReactNative'; | ||
if (!isReactNative && isNode) { | ||
suffix = require('os').EOL; | ||
} else { | ||
suffix = '\n'; | ||
} | ||
} | ||
units = simplePluralize(units.toLowerCase()); | ||
@@ -62,3 +73,5 @@ | ||
, string = '' | ||
, prefix = ''; | ||
, prefix = '' | ||
, openingTag | ||
, closingTag; | ||
@@ -65,0 +78,0 @@ if (format == 'html') { |
{ | ||
"name": "lorem-ipsum", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Generates passages of lorem ipsum text suitable for use as placeholder copy in web pages, graphics, and more.", | ||
@@ -5,0 +5,0 @@ "author": "Nickolas Kenyeres <nkenyeres@gmail.com> (http://knicklabs.github.com)", |
@@ -118,3 +118,3 @@ ### lorem-ipsum.js | ||
Copyright (c) 2012-2015 Nickolas Kenyeres | ||
Copyright (c) 2012-2017 Nickolas Kenyeres | ||
@@ -121,0 +121,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13815
296