Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

code-excerpt

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-excerpt - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

3

index.js
'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 [![Build Status](https://travis-ci.org/vdemedes/code-excerpt.svg?branch=master)](https://travis-ci.org/vdemedes/code-excerpt) [![Coverage Status](https://coveralls.io/repos/github/vdemedes/code-excerpt/badge.svg?branch=master)](https://coveralls.io/github/vdemedes/code-excerpt?branch=master)
# code-excerpt [![Build Status](https://travis-ci.org/vdemedes/code-excerpt.svg?branch=master)](https://travis-ci.org/vdemedes/code-excerpt)

@@ -3,0 +3,0 @@ > Extract code excerpts

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