From cc97a4dd2a967e1c2273bd5f4c5f49a5bf2e2585 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Wed, 27 Mar 2019 21:01:33 +0100 Subject: remove node_modules --- node_modules/strip-indent/cli.js | 49 --------------------------- node_modules/strip-indent/index.js | 16 --------- node_modules/strip-indent/license | 21 ------------ node_modules/strip-indent/package.json | 46 ------------------------- node_modules/strip-indent/readme.md | 61 ---------------------------------- 5 files changed, 193 deletions(-) delete mode 100755 node_modules/strip-indent/cli.js delete mode 100644 node_modules/strip-indent/index.js delete mode 100644 node_modules/strip-indent/license delete mode 100644 node_modules/strip-indent/package.json delete mode 100644 node_modules/strip-indent/readme.md (limited to 'node_modules/strip-indent') diff --git a/node_modules/strip-indent/cli.js b/node_modules/strip-indent/cli.js deleted file mode 100755 index bcd5f8d17..000000000 --- a/node_modules/strip-indent/cli.js +++ /dev/null @@ -1,49 +0,0 @@ -#!/usr/bin/env node -'use strict'; -var fs = require('fs'); -var stdin = require('get-stdin'); -var pkg = require('./package.json'); -var stripIndent = require('./'); -var argv = process.argv.slice(2); -var input = argv[0]; - -function help() { - console.log([ - '', - ' ' + pkg.description, - '', - ' Usage', - ' strip-indent ', - ' echo | strip-indent', - '', - ' Example', - ' echo \'\\tunicorn\\n\\t\\tcake\' | strip-indent', - ' unicorn', - ' \tcake' - ].join('\n')); -} - -function init(data) { - console.log(stripIndent(data)); -} - -if (argv.indexOf('--help') !== -1) { - help(); - return; -} - -if (argv.indexOf('--version') !== -1) { - console.log(pkg.version); - return; -} - -if (process.stdin.isTTY) { - if (!input) { - help(); - return; - } - - init(fs.readFileSync(input, 'utf8')); -} else { - stdin(init); -} diff --git a/node_modules/strip-indent/index.js b/node_modules/strip-indent/index.js deleted file mode 100644 index 8f8f4f444..000000000 --- a/node_modules/strip-indent/index.js +++ /dev/null @@ -1,16 +0,0 @@ -'use strict'; -module.exports = function (str) { - var match = str.match(/^[ \t]*(?=\S)/gm); - - if (!match) { - return str; - } - - var indent = Math.min.apply(Math, match.map(function (el) { - return el.length; - })); - - var re = new RegExp('^[ \\t]{' + indent + '}', 'gm'); - - return indent > 0 ? str.replace(re, '') : str; -}; diff --git a/node_modules/strip-indent/license b/node_modules/strip-indent/license deleted file mode 100644 index 654d0bfe9..000000000 --- a/node_modules/strip-indent/license +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) Sindre Sorhus (sindresorhus.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/strip-indent/package.json b/node_modules/strip-indent/package.json deleted file mode 100644 index 941ad7d70..000000000 --- a/node_modules/strip-indent/package.json +++ /dev/null @@ -1,46 +0,0 @@ -{ - "name": "strip-indent", - "version": "1.0.1", - "description": "Strip leading whitespace from every line in a string", - "license": "MIT", - "repository": "sindresorhus/strip-indent", - "author": { - "name": "Sindre Sorhus", - "email": "sindresorhus@gmail.com", - "url": "http://sindresorhus.com" - }, - "bin": { - "strip-indent": "cli.js" - }, - "engines": { - "node": ">=0.10.0" - }, - "scripts": { - "test": "mocha" - }, - "files": [ - "index.js", - "cli.js" - ], - "keywords": [ - "cli", - "bin", - "browser", - "strip", - "normalize", - "remove", - "indent", - "indentation", - "whitespace", - "space", - "tab", - "string", - "str" - ], - "devDependencies": { - "mocha": "*" - }, - "dependencies": { - "get-stdin": "^4.0.1" - } -} diff --git a/node_modules/strip-indent/readme.md b/node_modules/strip-indent/readme.md deleted file mode 100644 index d622f03b0..000000000 --- a/node_modules/strip-indent/readme.md +++ /dev/null @@ -1,61 +0,0 @@ -# strip-indent [![Build Status](https://travis-ci.org/sindresorhus/strip-indent.svg?branch=master)](https://travis-ci.org/sindresorhus/strip-indent) - -> Strip leading whitespace from every line in a string - -The line with the least number of leading whitespace, ignoring empty lines, determines the number to remove. - -Useful for removing redundant indentation. - - -## Install - -```sh -$ npm install --save strip-indent -``` - - -## Usage - -```js -var str = '\tunicorn\n\t\tcake'; -/* - unicorn - cake -*/ - -stripIndent('\tunicorn\n\t\tcake'); -/* -unicorn - cake -*/ -``` - - -## CLI - -```sh -$ npm install --global strip-indent -``` - -```sh -$ strip-indent --help - - Usage - strip-indent - echo | strip-indent - - Example - echo '\tunicorn\n\t\tcake' | strip-indent - unicorn - cake -``` - - -## Related - -- [indent-string](https://github.com/sindresorhus/indent-string) - Indent each line in a string - - -## License - -MIT © [Sindre Sorhus](http://sindresorhus.com) -- cgit v1.2.3