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

code-line-numbers

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

code-line-numbers - npm Package Compare versions

Comparing version 0.0.11 to 0.0.12

7

dist/code-line-numbers.js

@@ -18,4 +18,5 @@ "use strict";

var digitsCount = ("" + lines.length).length;
for (var n = 1; n <= lines.length; n++) {
var numberWithZeros = "" + n;
for (var n = 0; n < lines.length; n++) {
var lineNumber = n + 1;
var numberWithZeros = "" + lineNumber;
if (numberWithZeros.length < digitsCount) {

@@ -25,3 +26,3 @@ var zeros = "";

zeros += "0";
numberWithZeros = "<span class=\"code-line-numbers__number__zeros\">" + zeros + "</span>" + n;
numberWithZeros = "<span class=\"code-line-numbers__number__zeros\">" + zeros + "</span>" + lineNumber;
}

@@ -28,0 +29,0 @@ lines[n] = "<span class=\"code-line-numbers__number\">" + numberWithZeros + "</span>" + lines[n];

{
"name": "code-line-numbers",
"version": "0.0.11",
"version": "0.0.12",
"description": "Adding line numbers for code, HighLight.js is supported too",

@@ -5,0 +5,0 @@ "main": "./dist/code-line-numbers.js",

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