Comparing version 1.1.2 to 1.1.3
@@ -0,1 +1,3 @@ | ||
"use strict"; | ||
/** | ||
@@ -13,6 +15,6 @@ * indento | ||
function indento(input, width, char) { | ||
char = char || " "; | ||
return input.replace(/^/gm, char.repeat(width)); | ||
char = char || " "; | ||
return input.replace(/^/gm, char.repeat(width)); | ||
} | ||
module.exports = indento; | ||
module.exports = indento; |
{ | ||
"name": "indento", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Indent strings.", | ||
@@ -37,2 +37,3 @@ "main": "lib/index.js", | ||
"menu/", | ||
"scripts/", | ||
"cli.js", | ||
@@ -39,0 +40,0 @@ "index.js" |
# indento [![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![Version](https://img.shields.io/npm/v/indento.svg)](https://www.npmjs.com/package/indento) [![Downloads](https://img.shields.io/npm/dt/indento.svg)](https://www.npmjs.com/package/indento) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github) | ||
# indento | ||
[![PayPal](https://img.shields.io/badge/%24-paypal-f39c12.svg)][paypal-donations] [![AMA](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/indento.svg)](https://www.npmjs.com/package/indento) [![Downloads](https://img.shields.io/npm/dt/indento.svg)](https://www.npmjs.com/package/indento) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github) | ||
> Indent strings. | ||
@@ -5,0 +7,0 @@ |
4764
75