replace jest with ava

This commit is contained in:
Robert Brignull 2020-05-04 18:50:13 +01:00
parent 27cc8b23fe
commit 0347b72305
11775 changed files with 84546 additions and 1440575 deletions

5
node_modules/convert-to-spaces/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
'use strict';
module.exports = (str, spaces) => {
return str.replace(/^\t+/gm, $1 => ' '.repeat($1.length * (spaces || 2)));
};

21
node_modules/convert-to-spaces/license generated vendored Normal file
View file

@ -0,0 +1,21 @@
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.

25
node_modules/convert-to-spaces/package.json generated vendored Normal file
View file

@ -0,0 +1,25 @@
{
"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"
}
}

48
node_modules/convert-to-spaces/readme.md generated vendored Normal file
View file

@ -0,0 +1,48 @@
# 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)