{"name":"detab","version":"2.0.2","description":"Detab: tabs -> spaces","license":"MIT","keywords":["detab","tab","space","tab-size","size"],"repository":{"type":"git","url":"git+https://github.com/wooorm/detab.git"},"bugs":{"url":"https://github.com/wooorm/detab/issues"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"dependencies":{"repeat-string":"^1.5.4"},"devDependencies":{"browserify":"^16.0.0","nyc":"^14.0.0","prettier":"^1.12.1","remark-cli":"^6.0.0","remark-preset-wooorm":"^4.0.0","tape":"^4.0.0","tinyify":"^2.5.0","xo":"^0.24.0"},"scripts":{"format":"remark . -qfo && prettier --write \"**/*.js\" && xo --fix","build-bundle":"browserify . -s detab -o detab.js","build-mangle":"browserify . -s detab -p tinyify -o detab.min.js","build":"npm run build-bundle && npm run build-mangle","test-api":"node test","test-coverage":"nyc --reporter lcov tape test.js","test":"npm run format && npm run build && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true,"esnext":false,"ignores":["detab.js"]},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"e2ebf3c4d35b9889826588da866075b11fc8aae6","homepage":"https://github.com/wooorm/detab#readme","_id":"detab@2.0.2","_nodeVersion":"11.9.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Q57yPrxScy816TTE1P/uLRXLDKjXhvYTbfxS/e6lPD+YrqghbsMlGB9nQzj/zVtSPaF0DFPSdO916EWO4sQUyQ==","shasum":"074970d1a807b045d0258a4235df5928dd683561","tarball":"http://registry-npm.ywwl.com/detab/download/detab-2.0.2.tgz","fileCount":4,"unpackedSize":4943,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc1+VeCRA9TVsSAnZWagAAyT0P/2ATmlORE8tevc9H4Sw5\nn/M6HwgmTJpheFAjRlkFEJfVQDtBQPxNJiZxzyH1zbB7VLMb6TRG61ske6bL\nj1QGOADiUozikKARKyVwl9dIH1/CJClkXP/ydP1zH3Rd1yHVko5l0E/dHm1b\n0JgCO34gAdJx8BPXvQsAzWS794otz8fGbMJkShJuYLfU5363E9NWgTkxnm29\n60JAAmx1WpVs/bhR0oy202fzmjMafsHOT7qATyV21QnKLd2jpwi9nq9z0iZN\nSFcAMpENEYj5M22srhkk9NAEVu+3mu3a1cPMrNaU0tPGoVjiK29hpZROJ/6H\nbEE0jMJWddNOR3Mhjacvh40E5R5HIpj8DDi+kG9lN3B7FVFEaE6+ovymTmrg\nYT45stKaen9gHVBSBc0uDenbfGH1Ir2bybuYFqBXcwTzVkZw/tpFS1klmTON\nHz6cQ0vIcHROUVmNrl98ng2g480UZ2/N78PLtiqSYtMLJTZGH6DmSYgZJMK4\nmAiPTsplX6pi77LmHNw4Gl+WFx7dNCE52MuUhYhbaqLi1BhkibxymuA7yMEx\nIjs//3db/YKDvydDHcQUx6Y7vE4Fl1oNatQisJO5HVLTnhANcG07MniJhqVT\n5rrxYIx3bs0Y7yN96+NoR3Ej1YClXhQQQB6UwKG/mPuzgrSHuaAdIXnHi3fL\nv+wN\r\n=+pEH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIKKDIruo1IjjlEfZ+stgvBTYmnNgnSfvEv9fGzdYnvAiB51QdCiHQ+Yzlso/e/dY5xtnF7RVMlvcj7RnCn61kQaQ=="}],"size":2389,"noattachment":false,"key":"/detab/-/detab-2.0.2.tgz"},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detab_2.0.2_1557652829562_0.9043051769700263"},"_hasShrinkwrap":false,"readme":"# detab\n\n[![Build][build-badge]][build]\n[![Coverage][coverage-badge]][coverage]\n[![Downloads][downloads-badge]][downloads]\n[![Size][size-badge]][size]\n\nReplace tabs with spaces.\n\n## Contents\n\n*   [What is this?](#what-is-this)\n*   [When should I use this?](#when-should-i-use-this)\n*   [Install](#install)\n*   [Use](#use)\n*   [API](#api)\n    *   [`detab(value[, size=4])`](#detabvalue-size4)\n*   [Types](#types)\n*   [Compatibility](#compatibility)\n*   [Contribute](#contribute)\n*   [Security](#security)\n*   [License](#license)\n\n## What is this?\n\nThis package can turn a string with tabs into a string with spaces.\n\n## When should I use this?\n\nYou can use this package if *you* want to define how big the tab size is.\n\n## Install\n\nThis package is [ESM only][esm].\nIn Node.js (version 14.14+, 16.0+), install with [npm][]:\n\n```sh\nnpm install detab\n```\n\nIn Deno with [`esm.sh`][esmsh]:\n\n```js\nimport {detab} from 'https://esm.sh/detab@3'\n```\n\nIn browsers with [`esm.sh`][esmsh]:\n\n```html\n<script type=\"module\">\n  import {detab} from 'https://esm.sh/detab@3?bundle'\n</script>\n```\n\n## Use\n\n```js\nimport {detab} from 'detab'\n\nconsole.log(detab('\\tfoo\\nbar\\tbaz'))\nconsole.log(detab('\\tfoo\\nbar\\tbaz', 2))\nconsole.log(detab('\\tfoo\\nbar\\tbaz', 8))\n```\n\nYields:\n\n```txt\n    foo\nbar baz\n```\n\n```txt\n  foo\nbar baz\n```\n\n```txt\n        foo\nbar     baz\n```\n\n## API\n\nThis package exports the identifier `detab`.\nThere is no default export.\n\n### `detab(value[, size=4])`\n\nReplace tabs with spaces in `value` (`string`), being smart about which column\nthe tab is at and which `size` (`number`, default: `4`) should be used.\n\n## Types\n\nThis package is fully typed with [TypeScript][].\nIt exports no additional types.\n\n## Compatibility\n\nThis package is at least compatible with all maintained versions of Node.js.\nAs of now, that is Node.js 14.14+ and 16.0+.\nIt also works in Deno and modern browsers.\n\n## Contribute\n\nYes please!\nSee [How to Contribute to Open Source][contribute].\n\n## Security\n\nThis package is safe.\n\n## License\n\n[MIT][license] © [Titus Wormer][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://github.com/wooorm/detab/workflows/main/badge.svg\n\n[build]: https://github.com/wooorm/detab/actions\n\n[coverage-badge]: https://img.shields.io/codecov/c/github/wooorm/detab.svg\n\n[coverage]: https://codecov.io/github/wooorm/detab\n\n[downloads-badge]: https://img.shields.io/npm/dm/detab.svg\n\n[downloads]: https://www.npmjs.com/package/detab\n\n[size-badge]: https://img.shields.io/bundlephobia/minzip/detab.svg\n\n[size]: https://bundlephobia.com/result?p=detab\n\n[npm]: https://docs.npmjs.com/cli/install\n\n[esm]: https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c\n\n[esmsh]: https://esm.sh\n\n[typescript]: https://www.typescriptlang.org\n\n[contribute]: https://opensource.guide/how-to-contribute/\n\n[license]: license\n\n[author]: https://wooorm.com\n","publish_time":1557652829761,"_cnpm_publish_time":1557652829761,"dist-tags":{"latest":"3.0.2"}}