Every new change

This commit is contained in:
Luca Schwan
2020-03-25 11:05:34 +01:00
parent ff8491e75f
commit b4d041c5de
7164 changed files with 499221 additions and 135 deletions

8
node_modules/widest-line/index.js generated vendored Normal file
View File

@ -0,0 +1,8 @@
'use strict';
const stringWidth = require('string-width');
module.exports = input => {
let max = 0;
for (const s of input.split('\n')) max = Math.max(max, stringWidth(s));
return max;
};

9
node_modules/widest-line/license generated vendored Normal file
View File

@ -0,0 +1,9 @@
MIT License
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (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.

86
node_modules/widest-line/package.json generated vendored Normal file
View File

@ -0,0 +1,86 @@
{
"_from": "widest-line@^2.0.0",
"_id": "widest-line@2.0.1",
"_inBundle": false,
"_integrity": "sha512-Ba5m9/Fa4Xt9eb2ELXt77JxVDV8w7qQrH0zS/TWSJdLyAwQjWoOzpzj5lwVftDz6n/EOu3tNACS84v509qwnJA==",
"_location": "/widest-line",
"_phantomChildren": {},
"_requested": {
"type": "range",
"registry": true,
"raw": "widest-line@^2.0.0",
"name": "widest-line",
"escapedName": "widest-line",
"rawSpec": "^2.0.0",
"saveSpec": null,
"fetchSpec": "^2.0.0"
},
"_requiredBy": [
"/boxen"
],
"_resolved": "https://registry.npmjs.org/widest-line/-/widest-line-2.0.1.tgz",
"_shasum": "7438764730ec7ef4381ce4df82fb98a53142a3fc",
"_spec": "widest-line@^2.0.0",
"_where": "/Users/Luca_Schwan/Desktop/DSABot/node_modules/boxen",
"author": {
"name": "Sindre Sorhus",
"email": "sindresorhus@gmail.com",
"url": "sindresorhus.com"
},
"bugs": {
"url": "https://github.com/sindresorhus/widest-line/issues"
},
"bundleDependencies": false,
"dependencies": {
"string-width": "^2.1.1"
},
"deprecated": false,
"description": "Get the visual width of the widest line in a string - the number of columns required to display it",
"devDependencies": {
"ava": "*",
"xo": "*"
},
"engines": {
"node": ">=4"
},
"files": [
"index.js"
],
"homepage": "https://github.com/sindresorhus/widest-line#readme",
"keywords": [
"string",
"str",
"character",
"char",
"unicode",
"width",
"visual",
"column",
"columns",
"fullwidth",
"full-width",
"full",
"ansi",
"escape",
"codes",
"cli",
"command-line",
"terminal",
"console",
"cjk",
"chinese",
"japanese",
"korean",
"fixed-width"
],
"license": "MIT",
"name": "widest-line",
"repository": {
"type": "git",
"url": "git+https://github.com/sindresorhus/widest-line.git"
},
"scripts": {
"test": "xo && ava"
},
"version": "2.0.1"
}

34
node_modules/widest-line/readme.md generated vendored Normal file
View File

@ -0,0 +1,34 @@
# widest-line [![Build Status](https://travis-ci.org/sindresorhus/widest-line.svg?branch=master)](https://travis-ci.org/sindresorhus/widest-line)
> Get the visual width of the widest line in a string - the number of columns required to display it
Some Unicode characters are [fullwidth](https://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms) and use double the normal width. [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) are stripped and doesn't affect the width.
Useful to be able to know the maximum width a string will take up in the terminal.
## Install
```
$ npm install widest-line
```
## Usage
```js
const widestLine = require('widest-line');
widestLine('古\n\u001B[1m@\u001B[22m');
//=> 2
```
## Related
- [string-width](https://github.com/sindresorhus/string-width) - Get the visual width of a string
## License
MIT © [Sindre Sorhus](https://sindresorhus.com)