{"name":"detab","version":"3.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"},"funding":{"type":"github","url":"https://github.com/sponsors/wooorm"},"author":{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"},"contributors":[{"name":"Titus Wormer","email":"tituswormer@gmail.com","url":"https://wooorm.com"}],"sideEffects":false,"type":"module","main":"index.js","types":"index.d.ts","devDependencies":{"@types/node":"^18.0.0","c8":"^7.0.0","prettier":"^2.0.0","remark-cli":"^11.0.0","remark-preset-wooorm":"^9.0.0","type-coverage":"^2.0.0","typescript":"^4.0.0","xo":"^0.52.0"},"scripts":{"prepack":"npm run build && npm run format","build":"tsc --build --clean && tsc --build && type-coverage","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node --conditions development test.js","test-coverage":"c8 --check-coverage --100 --reporter lcov npm run test-api","test":"npm run build && npm run format && npm run test-coverage"},"prettier":{"tabWidth":2,"useTabs":false,"singleQuote":true,"bracketSpacing":false,"semi":false,"trailingComma":"none"},"xo":{"prettier":true},"remarkConfig":{"plugins":["preset-wooorm"]},"typeCoverage":{"atLeast":100,"detail":true,"strict":true,"ignoreCatch":true},"gitHead":"be0e301728f13b344fa67d46905960cdf2cad637","homepage":"https://github.com/wooorm/detab#readme","_id":"detab@3.0.2","_nodeVersion":"19.0.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-7Bp16Bk8sk0Y6gdXiCtnpGbghn8atnTJdd/82aWvS5ESnlcNvgUc10U2NYS0PAiDSGjWiI8qs/Cv1b2uSGdQ8w==","shasum":"b9909b52881badd598f653c5e4fcc7c94b158474","tarball":"http://registry-npm.ywwl.com/detab/download/detab-3.0.2.tgz","fileCount":5,"unpackedSize":7029,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGe7QgxJR+4gfDeacAzPs83kntpeq/amQHMLQ0MYp0TcAiBh5IjFq27OXJS/Ie0QE7Foy3vIEMeckuqofYin1L6wXQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcg8GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMLg//W5GqtbHQM80N2fCV02Hn6AZjMEqbR2k2f7N30a083SHXZ59b\r\nCEhB6LUQRut+vHvU61EjnJG6BewzgdfNNSYyP5n68WOvu1WdEkk2D4rWx9Az\r\nivykAKTQsBYkTSfj0dvP742BqhK2+G2d2l2B10MRyT2cPvB50MTf0WMze0t9\r\naoe95W8HvoYMHbyA83R7EXx1VpOtQHYfsM4myQbXybm7ElmB8mM67/2JAzDF\r\nli6OJ8zqeFll5GIS6Tpja99R4RNEAbvu0+JXKqwbcn3QlxuQue88k9BYhOxZ\r\nHRV33KM7AzZicZUGllDiYXPyo2vteBSMht+sb4OavOPoP3aak3XPDtv1nt3d\r\nVow5Sh5MesEJO9J6yWAHyveraM3elaUB5VP+e+q/TzbgxCOLBYjn1hqCCmYR\r\nwvihGpnzt/bjc1BzF7zXGQXsyOwgMAVg/FOnSpAvFglq7NEY9T86fwZwP55d\r\n+4RptXT5yDQ+IOBvqGMqJiFSAnl/tdA5fm8ozif6722Q1GlULjlH722/5s+I\r\nmJ4bht7bgf4RDc9QBPIn3edAfxbLIPcDhmCiqvZK4pQwfXFh9tRbNzwCv53X\r\npf9j8qO5/37/8th02KzHwSMNSI+c2GaJTHP6FsKY0KiXQf/L6KGeBgdhMVnF\r\nie4B7pbDs9THW6i5WW7y7Rge4tJw3vQQeyw=\r\n=D6ir\r\n-----END PGP SIGNATURE-----\r\n","size":3139,"noattachment":false,"key":"/detab/-/detab-3.0.2.tgz"},"_npmUser":{"name":"wooorm","email":"tituswormer@gmail.com"},"directories":{},"maintainers":[{"name":"wooorm","email":"tituswormer@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/detab_3.0.2_1668419334699_0.9122500677492869"},"_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":1668419334872,"_cnpm_publish_time":1668419334872,"dist-tags":{"latest":"3.0.2"}}