Socket
Socket
Sign inDemoInstall

convert-to-spaces

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-to-spaces - npm Package Compare versions

Comparing version 1.0.2 to 2.0.0

dist/index.d.ts

38

package.json
{
"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)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc