{"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":{"integrity":"sha512-rcQ1bsQO9799wq24uE5AM2tAILy4gXGIK/njFWcVQkGNZ96edlpY+A7bjwvzjYvLDyzmG1MmMLZhpcsb+klNMQ==","shasum":"61a6c98f8aa626c16b296b862a91412a33bceb6b","tarball":"http://registry-npm.ywwl.com/convert-to-spaces/download/convert-to-spaces-2.0.1.tgz","fileCount":5,"unpackedSize":2962,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/51VCRA9TVsSAnZWagAAVAEQAJevScw6GrrhOAVfCSGn\nR7Tzk89w99100/1pbFBaZO9lNnV4gtBJbOZXrguUvoDRc6p4o9uHnGkapH/8\nT4N5MwaSptzLTjagcVKbJW3G5yjqQ3g+0Z9VYw5sE8Z/1BOW4/SbXxqARw6f\nI54bUzpWJowV5U1NasbvvslJcIT1CLQhfXxdtARtbmaxLHvJ3y8AylPTHjV8\nT+yBQ6/xm38yvCWoZBGacd3cv86d5UtUad0oPRQRL3vupkZ5iW2B+xHD+ZBs\nEQXLlw3vOrN3ks5uXpkdmKUnNbfxDLfD5RZkazwYhOvzVM/NH28Tf4J1eQ7T\nke0qoNlykvMsSdVz5d4czY7Pu/tf038TMPWzKtyWdrEEtO3Tr1lhbuOg/w/R\noZUcCqwAE+EXk+VDEkk+NTXS1GnHUxzGHenb4MF6lle2FB29OQ1t3OWosFEk\nR/AHwc0Sk/hyoSUcZA2ZZoEAL3JmDJejVXKxHCtaW7B+IFRFWdVt0e4RkQGS\nsW8rmoPBnKR5tzPBym69jRDHZXIy+WEICh/hZ7vetpuOkg5pxAx6LJYw/4qx\niO/mQ3lSXLrZWZyRtma9oIj/qRdH+7neSs7zdXGChxfjY4Dv0oWpzI174PX4\nwO1vDWIjydEle6jx31bX+JlvYpEgeI1wUJHj9ei57hxGOmkMawH7Xi1IFmO6\nbpDF\r\n=GXAx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDouJbQUspl9FQqcnm9qLDdhFy81gSXftl0S63+Vu47SgIgc+3cm4Md9ZZ4Bde30ps9v0kwnp6FlEcjWuNYX4hNhwg="}],"size":1658,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-2.0.1.tgz"},"_npmUser":{"name":"vdemedes","email":"vadimdemedes@hey.com"},"directories":{},"maintainers":[{"name":"vdemedes","email":"vadimdemedes@hey.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/convert-to-spaces_2.0.1_1644141909358_0.9841680177265539"},"_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","publish_time":1644141909499,"_cnpm_publish_time":1644141909499,"dist-tags":{"latest":"2.0.1"}}