Socket
Socket
Sign inDemoInstall

indent-string

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

indent-string - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

4

index.js
'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": {

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