Socket
Socket
Sign inDemoInstall

indent-string

Package Overview
Dependencies
0
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.1.0

6

index.js
'use strict';
const repeating = require('repeating');
module.exports = (str, count, indent) => {

@@ -24,5 +22,3 @@ indent = indent === undefined ? ' ' : indent;

indent = count > 1 ? repeating(count, indent) : indent;
return str.replace(/^(?!\s*$)/mg, indent);
return str.replace(/^(?!\s*$)/mg, indent.repeat(count));
};
{
"name": "indent-string",
"version": "3.0.0",
"version": "3.1.0",
"description": "Indent each line in a string",

@@ -30,12 +30,6 @@ "license": "MIT",

],
"dependencies": {
"repeating": "^3.0.0"
},
"devDependencies": {
"ava": "*",
"xo": "*"
},
"xo": {
"esnext": true
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc