aboutsummaryrefslogtreecommitdiff
path: root/node_modules/convert-to-spaces
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/convert-to-spaces')
-rw-r--r--node_modules/convert-to-spaces/index.js5
-rw-r--r--node_modules/convert-to-spaces/license21
-rw-r--r--node_modules/convert-to-spaces/package.json25
-rw-r--r--node_modules/convert-to-spaces/readme.md48
4 files changed, 0 insertions, 99 deletions
diff --git a/node_modules/convert-to-spaces/index.js b/node_modules/convert-to-spaces/index.js
deleted file mode 100644
index b61b17f0d..000000000
--- a/node_modules/convert-to-spaces/index.js
+++ /dev/null
@@ -1,5 +0,0 @@
-'use strict';
-
-module.exports = (str, spaces) => {
- return str.replace(/^\t+/gm, $1 => ' '.repeat($1.length * (spaces || 2)));
-};
diff --git a/node_modules/convert-to-spaces/license b/node_modules/convert-to-spaces/license
deleted file mode 100644
index 85d4fee2c..000000000
--- a/node_modules/convert-to-spaces/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Vadim Demedes <vdemedes@gmail.com> (https://vadimdemedes.com)
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
diff --git a/node_modules/convert-to-spaces/package.json b/node_modules/convert-to-spaces/package.json
deleted file mode 100644
index 1f85fa0fe..000000000
--- a/node_modules/convert-to-spaces/package.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "name": "convert-to-spaces",
- "version": "1.0.2",
- "description": "Convert tabs to spaces in a string",
- "license": "MIT",
- "repository": "vadimdemedes/convert-to-spaces",
- "author": "Vadim Demedes <vdemedes@gmail.com>",
- "keywords": [
- "tabs",
- "spaces"
- ],
- "engines": {
- "node": ">= 4"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "files": [
- "index.js"
- ],
- "devDependencies": {
- "ava": "^0.18.2",
- "xo": "^0.17.1"
- }
-}
diff --git a/node_modules/convert-to-spaces/readme.md b/node_modules/convert-to-spaces/readme.md
deleted file mode 100644
index 9eccf42d0..000000000
--- a/node_modules/convert-to-spaces/readme.md
+++ /dev/null
@@ -1,48 +0,0 @@
-# convert-to-spaces [![Build Status](https://travis-ci.org/vadimdemedes/convert-to-spaces.svg?branch=master)](https://travis-ci.org/vadimdemedes/convert-to-spaces)
-
-> Convert tabs to spaces in a string
-
-
-## Install
-
-```
-$ npm install --save convert-to-spaces
-```
-
-
-## Usage
-
-```js
-const convertToSpaces = require('convert-to-spaces');
-
-convertToSpaces('\t\thello!');
-//=> ' hello!'
-```
-
-
-## API
-
-### convertToSpaces(str, [spaces])
-
-#### str
-
-Type: `string`
-
-Source string.
-
-#### spaces
-
-Type: `number`<br>
-Default: `2`
-
-Number of spaces instead of each tab.
-
-
-## Related
-
-- [convert-to-tabs](https://github.com/vadimdemedes/convert-to-tabs) - Convert spaces to tabs.
-
-
-## License
-
-MIT © [Vadim Demedes](https://vadimdemedes.com)