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.3 to 0.1.4

6

detect-indent.js

@@ -0,1 +1,7 @@

/*!
detect-indent
by Sindre Sorhus
https://github.com/sindresorhus/detect-indent
MIT License
*/
(function () {

@@ -2,0 +8,0 @@ 'use strict';

4

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

@@ -18,4 +18,2 @@ "keywords": [

],
"homepage": "https://github.com/sindresorhus/detect-indent",
"bugs": "https://github.com/sindresorhus/detect-indent/issues",
"license": "MIT",

@@ -22,0 +20,0 @@ "author": {

@@ -1,6 +0,6 @@

# detect-indent [![Build Status](https://secure.travis-ci.org/sindresorhus/detect-indent.png?branch=master)](http://travis-ci.org/sindresorhus/detect-indent)
# detect-indent [![Build Status](https://travis-ci.org/sindresorhus/detect-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/detect-indent)
> Detect the indentation of code
Pass in a string and get the indentation. Works in Node.js and the browser on any kind of text.
Pass in a string of any kind of text and get the indentation.

@@ -11,2 +11,3 @@

- Persisting the indentation when modifying a file.
- Have new content match the existing indentation.
- Setting the right indentation in your editor.

@@ -17,21 +18,15 @@

Download the library [manually](https://github.com/sindresorhus/detect-indent/releases) or with a package-manager.
Download [manually](https://github.com/sindresorhus/detect-indent/releases) or with a package-manager.
#### [npm](https://npmjs.org/package/detect-indent)
```bash
$ npm install --save detect-indent
```
npm install --save detect-indent
```
#### [Bower](http://bower.io)
```bash
$ bower install --save detect-indent
```
bower install --save detect-indent
```
#### [Component](https://github.com/component/component)
```bash
$ component install sindresorhus/detect-indent
```
component install sindresorhus/detect-indent
```

@@ -44,3 +39,3 @@

## Example
## Usage

@@ -75,2 +70,2 @@ Modify a JSON file while persisting the indentation in Node.js.

MIT License • © [Sindre Sorhus](http://sindresorhus.com)
[MIT](http://opensource.org/licenses/MIT) © [Sindre Sorhus](http://sindresorhus.com)
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