detect-indent
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -0,1 +1,7 @@ | ||
/*! | ||
detect-indent | ||
by Sindre Sorhus | ||
https://github.com/sindresorhus/detect-indent | ||
MIT License | ||
*/ | ||
(function () { | ||
@@ -2,0 +8,0 @@ 'use strict'; |
{ | ||
"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) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
61
3751
2
68