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

detect-indent

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

detect-indent - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

detect-indent.js

@@ -27,2 +27,3 @@ (function () {

var whitespace = matches[0];
var len = whitespace.length;

@@ -33,4 +34,9 @@ if (whitespace.indexOf('\t') !== -1) {

// convert odd numbers to even numbers
if (len % 2 === 1) {
len += 1;
}
if (whitespace.indexOf(' ') !== -1) {
spaces.push(whitespace.length);
spaces.push(len);
}

@@ -37,0 +43,0 @@ }

2

package.json
{
"name": "detect-indent",
"version": "0.1.1",
"version": "0.1.2",
"description": "Detect the indentation of code",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,3 +16,3 @@ # detect-indent [![Build Status](https://secure.travis-ci.org/sindresorhus/detect-indent.png?branch=master)](http://travis-ci.org/sindresorhus/detect-indent)

Download the library [manually](https://github.com/sindresorhus/detect-indent/raw/master/detect-indent.js) or with a package-manager.
Download the library [manually](https://github.com/sindresorhus/detect-indent/releases) or with a package-manager.

@@ -19,0 +19,0 @@ #### [npm](https://npmjs.org/package/detect-indent)

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