indent-string
Advanced tools
Comparing version 1.1.0 to 1.2.0
'use strict'; | ||
var repeatString = require('repeat-string'); | ||
var repeating = require('repeating'); | ||
@@ -13,5 +13,5 @@ module.exports = function (str, indent, count) { | ||
indent = count > 1 ? repeatString(indent, count) : indent; | ||
indent = count > 1 ? repeating(indent, count) : indent; | ||
return str.replace(/^(?!\s*$)/mg, indent); | ||
}; |
{ | ||
"name": "indent-string", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Indent each line in a string", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
"minimist": "^1.1.0", | ||
"repeat-string": "^0.1.2" | ||
"repeating": "^1.1.0" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
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
3326
+ Addedrepeating@^1.1.0
+ Addedis-finite@1.1.0(transitive)
+ Addedrepeating@1.1.3(transitive)
- Removedrepeat-string@^0.1.2
- Removedrepeat-string@0.1.2(transitive)