{"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":{"integrity":"sha512-l/PzJmKYRMpHykwZKmf5IAmN2JBqotLT7UorIQceFm/hJa8LnZ0d0el1Bq8K2XQpSCp8BH/Fw8zAp4PhqdVRGA==","shasum":"4f52b41a388f7a8b24a8e953b5742e01f20a3c6a","tarball":"http://registry-npm.ywwl.com/convert-to-spaces/download/convert-to-spaces-2.0.0.tgz","fileCount":5,"unpackedSize":2930,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh/5rbCRA9TVsSAnZWagAA/qEP/2WfYazlk+AnGa35dtAB\nAhYt5v8MFUaA4asopGxDn8nx3Ki7ymBDlzHNsXVaDfD19W3JlPhowYZbRMCf\nBudEhFDfdgB5LQ8STcn2nQ4IUaCVt3oiZaZ+KfAYZgOFAtBAzbt0QSYWkmks\n7oO2quS2w2ifIciCByEzPV7U3EpWiu2t5WtlZynyOKBcyKIS5oXEcwud/xNp\nmV5XRg/jjP1mY3OBIZwfRkEXIgL/7mlg6BJx2Q3XX/CAbgeDSvpraJVJiftr\nXs8ljOzL1G0uhritNzdjPfFY+ZnzjE0dOVlEkL4OnHUVXQKZuw564lr/Ug35\nC/UQz7R8NHyrfSaMVBucGLnWEHaA3VXQ3ToSv7din2L26CcRylsE+xz79d6h\ndK9lZr+RL0NMgrvxGdwoL0m5Z1yNfC+bcbUxlWqSWQsR+RHl//oZa6dZpT0q\nGozAJ5urjZNXfIEShBKQ3sI2XDmS+pEwLCD/Ocemw8HPyfAex/g7XriOLMuu\nPoI8PGarJqkzvv/IZEIGNhFCqJEdXHVRgFNpfR/PyHt6EXUEp+UbOzzNwbXS\nXq62maKHBKN+QpXGhAXRZyfJ9YtDz6TlWaz1u4MUBCvhLm0yKE6T5q/ABgEc\nDRxFGF+rOBfXn0mQqD3IrMXwgnEayeMquwjn/gkeWOLwK7ecbGkGNJXwu0ki\nu3Hx\r\n=potl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFnhWgXxtrbOdgdfp1Ex1i/RCs8GJUqqO57nXdF45LcqAiAqGpS7ZvhCk6MDE+3DVav5faFKkRNO0Ktef+EXW4engA=="}],"size":1650,"noattachment":false,"key":"/convert-to-spaces/-/convert-to-spaces-2.0.0.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.0_1644141275614_0.2717193898117978"},"_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":1644141275778,"_cnpm_publish_time":1644141275778,"dist-tags":{"latest":"2.0.1"}}