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 2.0.0 to 2.1.0

6

index.js

@@ -5,3 +5,3 @@ 'use strict';

function generateLineNumbers(line, around) {
const generateLineNumbers = (line, around) => {
const lineNumbers = [];

@@ -17,3 +17,3 @@

return lineNumbers;
}
};

@@ -32,3 +32,3 @@ module.exports = (source, line, options) => {

if (line > source.length) {
throw new TypeError(`Line number \`${line}\` is bigger than a total number of lines (${source.length}).`);
return null;
}

@@ -35,0 +35,0 @@

{
"name": "code-excerpt",
"version": "2.0.0",
"version": "2.1.0",
"description": "Extract code excerpts",
"license": "MIT",
"repository": "vdemedes/code-excerpt",
"repository": "vadimdemedes/code-excerpt",
"author": {
"name": "vdemedes",
"email": "vdemedes@gmail.com",
"url": "github.com/vdemedes"
"url": "github.com/vadimdemedes"
},

@@ -12,0 +12,0 @@ "engines": {

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