{"name":"detab","version":"3.0.0","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","dependencies":{"repeat-string":"^1.6.0"},"devDependencies":{"@types/tape":"^4.0.0","c8":"^7.6.0","prettier":"^2.0.0","remark-cli":"^9.0.0","remark-preset-wooorm":"^8.0.0","rimraf":"^3.0.0","tape":"^5.0.0","typescript":"^4.0.0","xo":"^0.38.0"},"scripts":{"prepublishOnly":"npm run build && npm run format","prebuild":"rimraf \"*.d.ts\"","build":"tsc","format":"remark . -qfo && prettier . -w --loglevel warn && xo --fix","test-api":"node test.js","test-coverage":"c8 --check-coverage --branches 100 --functions 100 --lines 100 --statements 100 --reporter lcov node test.js","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,"rules":{"no-var":"off","prefer-arrow-callback":"off"}},"remarkConfig":{"plugins":["preset-wooorm"]},"gitHead":"967a194b5a37200605a4193dfb487940b2ff5869","homepage":"https://github.com/wooorm/detab#readme","_id":"detab@3.0.0","_nodeVersion":"15.11.0","_npmVersion":"7.6.2","dist":{"integrity":"sha512-8czHjLdGPRgMLtV1Wb+LcuxcEDdA0wz3uKFVxgtAIAvRob96BHT1ietft23B3+GsOtbA73QkPLkBjwoZ+Hf41A==","shasum":"6f55dd99a3a71f240f5687982afa2cf2c6777b50","tarball":"http://registry-npm.ywwl.com/detab/download/detab-3.0.0.tgz","fileCount":5,"unpackedSize":5739,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgSiKECRA9TVsSAnZWagAAHmUP+waYLmnWpB8xHs+CP9+7\nEHT+zgJc+mdG/qO1WWOYR3HGuELdErtiwp9QPEjT+0noweQeV24WcUxZngqY\nAarlC5FUBlBJRE/wA4h4LC4ALgKtZIMXn88S7i5XaMObvC98HibCskvkmB1j\nR64IQA/09+KBAtqgDhzDz9HmGBvqRFNGSRO2jpbPddhDZYLHNWT+bR7FvLkD\nQqBzuIzo7iUPz2JfYmRHJCGRk4oQZWlD8MzHJ81zohQZl8qKp49bk3pei7vR\n3Zn8GE7HBzrkwz9K9wJAyQd69s1bmzQ7DahXW4AgMNiISKh8uhmL45v+ymBv\nI15ZY2exkAduvkGCpPJPHG/kzFPjKkVJVhqFNwm+jQTL+pa4qWRTsiSbir6+\n6g9SVYD8hWTdy0rXzHd99bFbas0cwg6zLNqV+FGcemMlumM80OFC/VJ6DTKB\nIkfANEl32SA7wIHu/S3jnOoEbPwuof5d9ua1QfMj8AtwJ58EI59PG0B7LVut\nXz5QQtcbShiimIPY8Lg4OAz+KdupUAJlQFpqoIheuLUQ6sAH8en+iVM03hv5\nIX8VhFVhm1rI/xXRFSWZ5tf4Yk+EerU/2nzTS6yWHuoL4o6gvFYH7d2qyJAF\nfCp8XvOmbqvs2wqcq6zbKIyBmS+2rekoETbW9JqK9pzeuKsezdYKFo0053Qc\nAo1n\r\n=2bVb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmeVrNgPhuhrvHX5J3dYnuPf0aBgAO6AK1o3DoZQMuMAIgEwlzPs0bXxlXFwwK21+veJ0kF37hcDXdlokc+Gsc29s="}],"size":2687,"noattachment":false,"key":"/detab/-/detab-3.0.0.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.0_1615471235446_0.4510680873245134"},"_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":1615471235597,"_cnpm_publish_time":1615471235597,"dist-tags":{"latest":"3.0.2"}}