{"_id":"convert-to-spaces","_rev":"2817032","name":"convert-to-spaces","description":"Convert tabs to spaces in a string","dist-tags":{"latest":"2.0.1"},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"time":{"modified":"2022-09-06T14:07:37.000Z","created":"2016-11-13T15:34:05.210Z","2.0.1":"2022-02-06T10:05:09.499Z","2.0.0":"2022-02-06T09:54:35.778Z","1.0.2":"2017-02-23T20:15:48.271Z","1.0.1":"2016-11-13T16:13:16.579Z","1.0.0":"2016-11-13T15:34:05.210Z"},"users":{},"author":{"name":"Vadim Demedes","email":"vdemedes@gmail.com"},"repository":{"type":"git","url":"git+https://github.com/vadimdemedes/convert-to-spaces.git"},"versions":{"2.0.1":{"name":"convert-to-spaces","version":"2.0.1","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/vadimdemedes/convert-to-spaces.git"},"author":{"name":"Vadim Demedes","email":"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","types":"./dist/index.d.ts","engines":{"node":"^12.20.0 || ^14.13.1 || >=16.0.0"},"keywords":["tabs","spaces"],"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"},"xo":{"prettier":true},"prettier":"@vdemedes/prettier-config","gitHead":"b5a7cd59b07ee324efab85ce15f2a18ae08cc835","bugs":{"url":"https://github.com/vadimdemedes/convert-to-spaces/issues"},"homepage":"https://github.com/vadimdemedes/convert-to-spaces#readme","_id":"convert-to-spaces@2.0.1","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"shasum":"61a6c98f8aa626c16b296b862a91412a33bceb6b","size":1658,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-to-spaces/download/convert-to-spaces-2.0.1.tgz"},"_npmUser":{"name":"vdemedes","email":"vadimdemedes@hey.com"},"directories":{},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-to-spaces_2.0.1_1644141909358_0.9841680177265539"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-06T10:05:23.385Z","publish_time":1644141909499,"_cnpm_publish_time":1644141909499},"2.0.0":{"name":"convert-to-spaces","version":"2.0.0","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/vadimdemedes/convert-to-spaces.git"},"author":{"name":"Vadim Demedes","email":"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"},"keywords":["tabs","spaces"],"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"},"xo":{"prettier":true},"prettier":"@vdemedes/prettier-config","gitHead":"44a3e9b4cb199bc970cade024afeba584d2198e2","bugs":{"url":"https://github.com/vadimdemedes/convert-to-spaces/issues"},"homepage":"https://github.com/vadimdemedes/convert-to-spaces#readme","_id":"convert-to-spaces@2.0.0","_nodeVersion":"14.19.0","_npmVersion":"6.14.16","dist":{"shasum":"4f52b41a388f7a8b24a8e953b5742e01f20a3c6a","size":1650,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-to-spaces/download/convert-to-spaces-2.0.0.tgz"},"_npmUser":{"name":"vdemedes","email":"vadimdemedes@hey.com"},"directories":{},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-to-spaces_2.0.0_1644141275614_0.2717193898117978"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-02-06T09:54:41.471Z","publish_time":1644141275778,"_cnpm_publish_time":1644141275778},"1.0.2":{"name":"convert-to-spaces","version":"1.0.2","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/vadimdemedes/convert-to-spaces.git"},"author":{"name":"Vadim Demedes","email":"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"},"gitHead":"22d167f3783098dd3f1172cfa9bd3f421f4168eb","bugs":{"url":"https://github.com/vadimdemedes/convert-to-spaces/issues"},"homepage":"https://github.com/vadimdemedes/convert-to-spaces#readme","_id":"convert-to-spaces@1.0.2","_shasum":"7e3e48bbe6d997b1417ddca2868204b4d3d85715","_from":".","_npmVersion":"3.10.10","_nodeVersion":"6.10.0","_npmUser":{"name":"vdemedes","email":"vdemedes@gmail.com"},"dist":{"shasum":"7e3e48bbe6d997b1417ddca2868204b4d3d85715","size":1501,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-to-spaces/download/convert-to-spaces-1.0.2.tgz"},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/convert-to-spaces-1.0.2.tgz_1487880946191_0.8938314367551357"},"directories":{},"publish_time":1487880948271,"_cnpm_publish_time":1487880948271,"_hasShrinkwrap":false},"1.0.1":{"name":"convert-to-spaces","version":"1.0.1","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/vdemedes/convert-to-spaces.git"},"author":{"name":"vdemedes","email":"vdemedes@gmail.com","url":"github.com/vdemedes"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tabs","spaces"],"devDependencies":{"ava":"^0.16.0","xo":"^0.17.1"},"xo":{"esnext":true},"gitHead":"61ee8d951ccb8ef4c277a17923939ee9c64f6674","bugs":{"url":"https://github.com/vdemedes/convert-to-spaces/issues"},"homepage":"https://github.com/vdemedes/convert-to-spaces#readme","_id":"convert-to-spaces@1.0.1","_shasum":"df97c15b6d061375cc4f3efe01bfc1f4d2a83ad6","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"vdemedes","email":"vdemedes@gmail.com"},"dist":{"shasum":"df97c15b6d061375cc4f3efe01bfc1f4d2a83ad6","size":1540,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-1.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-to-spaces/download/convert-to-spaces-1.0.1.tgz"},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/convert-to-spaces-1.0.1.tgz_1479053594701_0.015807021874934435"},"directories":{},"publish_time":1479053596579,"_cnpm_publish_time":1479053596579,"_hasShrinkwrap":false},"1.0.0":{"name":"convert-to-spaces","version":"1.0.0","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"git+https://github.com/vdemedes/convert-to-spaces.git"},"author":{"name":"vdemedes","email":"vdemedes@gmail.com","url":"github.com/vdemedes"},"engines":{"node":">=4"},"scripts":{"test":"xo && ava"},"files":["index.js"],"keywords":["tabs","spaces"],"dependencies":{"repeating":"^3.0.0"},"devDependencies":{"ava":"^0.16.0","xo":"^0.17.1"},"xo":{"esnext":true},"gitHead":"b7f1ef302da710fba6435b711efa3d4a48c6f45c","bugs":{"url":"https://github.com/vdemedes/convert-to-spaces/issues"},"homepage":"https://github.com/vdemedes/convert-to-spaces#readme","_id":"convert-to-spaces@1.0.0","_shasum":"74f69fee5bd286149c00aab8aa786b4ec166428a","_from":".","_npmVersion":"3.10.8","_nodeVersion":"6.9.1","_npmUser":{"name":"vdemedes","email":"vdemedes@gmail.com"},"dist":{"shasum":"74f69fee5bd286149c00aab8aa786b4ec166428a","size":1547,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/convert-to-spaces/download/convert-to-spaces-1.0.0.tgz"},"maintainers":[{"name":"npm:vdemedes","email":""},{"name":"vdemedes","email":"sbioko@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/convert-to-spaces-1.0.0.tgz_1479051243109_0.9504898171871901"},"directories":{},"publish_time":1479051245210,"_cnpm_publish_time":1479051245210,"_hasShrinkwrap":false}},"readme":"# convert-to-spaces [![Build Status](https://github.com/vadimdemedes/convert-to-spaces/workflows/test/badge.svg)](https://github.com/vadimdemedes/convert-to-spaces/actions)\n\n> Convert tabs to spaces in a string\n\n## Install\n\n```\n$ npm install --save convert-to-spaces\n```\n\n## Usage\n\n```js\nimport convertToSpaces from 'convert-to-spaces';\n\nconvertToSpaces('\\t\\thello!');\n//=> '    hello!'\n```\n\n## API\n\n### convertToSpaces(input, [spaces])\n\n#### input\n\nType: `string`\n\nString to convert.\n\n#### spaces\n\nType: `number`<br>\nDefault: `2`\n\nNumber of spaces instead of each tab.\n\n## Related\n\n- [convert-to-tabs](https://github.com/vadimdemedes/convert-to-tabs) - Convert spaces to tabs.\n","_attachments":{},"homepage":"https://github.com/vadimdemedes/convert-to-spaces#readme","bugs":{"url":"https://github.com/vadimdemedes/convert-to-spaces/issues"},"license":"MIT"}