convert-to-spaces
Advanced tools
Comparing version 1.0.2 to 2.0.0
{ | ||
"name": "convert-to-spaces", | ||
"version": "1.0.2", | ||
"version": "2.0.0", | ||
"description": "Convert tabs to spaces in a string", | ||
@@ -8,2 +8,17 @@ "license": "MIT", | ||
"author": "Vadim Demedes <vdemedes@gmail.com>", | ||
"scripts": { | ||
"build": "tsc", | ||
"dev": "tsc --watch", | ||
"prepare": "npm run build", | ||
"pretest": "npm run build", | ||
"test": "xo && ava" | ||
}, | ||
"type": "module", | ||
"exports": "./dist/index.js", | ||
"engines": { | ||
"node": "^12.20.0 || ^14.13.1 || >=16.0.0" | ||
}, | ||
"files": [ | ||
"dist" | ||
], | ||
"keywords": [ | ||
@@ -13,15 +28,14 @@ "tabs", | ||
], | ||
"engines": { | ||
"node": ">= 4" | ||
"devDependencies": { | ||
"@sindresorhus/tsconfig": "^2.0.0", | ||
"@vdemedes/prettier-config": "^2.0.1", | ||
"ava": "^4.0.1", | ||
"prettier": "^2.5.1", | ||
"typescript": "^4.5.5", | ||
"xo": "^0.47.0" | ||
}, | ||
"scripts": { | ||
"test": "xo && ava" | ||
"xo": { | ||
"prettier": true | ||
}, | ||
"files": [ | ||
"index.js" | ||
], | ||
"devDependencies": { | ||
"ava": "^0.18.2", | ||
"xo": "^0.17.1" | ||
} | ||
"prettier": "@vdemedes/prettier-config" | ||
} |
@@ -1,6 +0,5 @@ | ||
# 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 | ||
@@ -12,7 +11,6 @@ | ||
## Usage | ||
```js | ||
const convertToSpaces = require('convert-to-spaces'); | ||
import convertToSpaces from 'convert-to-spaces'; | ||
@@ -23,12 +21,11 @@ convertToSpaces('\t\thello!'); | ||
## API | ||
### convertToSpaces(str, [spaces]) | ||
### convertToSpaces(input, [spaces]) | ||
#### str | ||
#### input | ||
Type: `string` | ||
Source string. | ||
String to convert. | ||
@@ -42,10 +39,4 @@ #### spaces | ||
## Related | ||
- [convert-to-tabs](https://github.com/vadimdemedes/convert-to-tabs) - Convert spaces to tabs. | ||
## License | ||
MIT © [Vadim Demedes](https://vadimdemedes.com) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
2930
5
6
Yes
6
40