Update ava to 4.3.3

The [release notes](https://github.com/avajs/ava/releases/tag/v4.3.3)
mention compatibility with Node 18.8.
This commit is contained in:
Henry Mercer 2022-09-02 18:02:07 +01:00
parent 21530f507f
commit bea5e4b220
160 changed files with 2647 additions and 2263 deletions

View file

@ -1,34 +1,31 @@
# 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-to-spaces [![Build Status](https://github.com/vadimdemedes/convert-to-spaces/workflows/test/badge.svg)](https://github.com/vadimdemedes/convert-to-spaces/actions)
> Convert tabs to spaces in a string
## Install
```
$ npm install --save convert-to-spaces
```
## Usage
```js
const convertToSpaces = require('convert-to-spaces');
import convertToSpaces from 'convert-to-spaces';
convertToSpaces('\t\thello!');
//=> ' hello!'
```
## API
### convertToSpaces(str, [spaces])
### convertToSpaces(input, [spaces])
#### str
#### input
Type: `string`
Source string.
String to convert.
#### spaces
@ -37,12 +34,6 @@ 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)