code-excerpt
Advanced tools
Comparing version
'use strict'; | ||
const tabsToSpaces = require('convert-to-spaces'); | ||
const repeating = require('repeating'); | ||
@@ -26,3 +25,3 @@ function generateLineNumbers(line, around) { | ||
if (line.length < maxLength) { | ||
line += repeating(maxLength - line.length); | ||
line += ' '.repeat(maxLength - line.length); | ||
} | ||
@@ -29,0 +28,0 @@ |
{ | ||
"name": "code-excerpt", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Extract code excerpts", | ||
@@ -22,4 +22,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"convert-to-spaces": "^1.0.0", | ||
"repeating": "^3.0.0" | ||
"convert-to-spaces": "^1.0.1" | ||
}, | ||
@@ -26,0 +25,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
# code-excerpt [](https://travis-ci.org/vdemedes/code-excerpt) [](https://coveralls.io/github/vdemedes/code-excerpt?branch=master) | ||
# code-excerpt [](https://travis-ci.org/vdemedes/code-excerpt) | ||
@@ -3,0 +3,0 @@ > Extract code excerpts |
1
-50%4224
-5.23%41
-2.38%- Removed
- Removed
Updated