{"_id":"@cjser/convert-to-spaces","name":"@cjser/convert-to-spaces","dist-tags":{"latest":"2.0.1-cjser.2"},"versions":{"2.0.1-cjser.2":{"name":"@cjser/convert-to-spaces","version":"2.0.1-cjser.2","description":"Convert tabs to spaces in a string","license":"MIT","repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Vadim Demedes","email":"vdemedes@gmail.com"},"scripts":{"build":"tsc","dev":"tsc --watch","pretest":"npm run build","test":"xo && ava"},"type":"module","exports":{"require":"./dist-cjser/index.cjs","default":"./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","main":"./dist-cjser/index.cjs","cjser":{"sourceVersion":"2.0.1","cjserVersion":2,"original":{"name":"convert-to-spaces","version":"2.0.1","exports":"./dist/index.js","repository":"vadimdemedes/convert-to-spaces","files":["dist"],"scripts":{"build":"tsc","dev":"tsc --watch","prepare":"npm run build","pretest":"npm run build","test":"xo && ava"}}},"_id":"@cjser/convert-to-spaces@2.0.1-cjser.2","gitHead":"0168e4aac54a1a9ca6f921419fa5ed9edb53ef4a","_nodeVersion":"20.14.0","_npmVersion":"10.7.0","dist":{"integrity":"sha512-aQk197NMTBBDA0kwbjx/QRNBlKXLhEN/vID5iI1grMmO308Kg1iuNr1lzabtxLKxlImu0oHPmWbhQytvxIP84w==","shasum":"89938597b1014bb62e8a7fe6102efeb6be34b5ce","tarball":"https://registry.npmjs.org/@cjser/convert-to-spaces/-/convert-to-spaces-2.0.1-cjser.2.tgz","fileCount":6,"unpackedSize":5018,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIQD4+zeDomn37/DhGCoFJUhfBURkfEAHS+RIgXq4yKPuEgIgJiuSash6Ra8fW1wHn2/IkvtyrakoeNgC9/kcTAgY7Ew="}]},"_npmUser":{"name":"nanahira","email":"nanahira@momobako.com"},"directories":{},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/convert-to-spaces_2.0.1-cjser.2_1778130480961_0.20961998531964032"},"_hasShrinkwrap":false}},"time":{"created":"2026-05-07T05:08:00.900Z","2.0.1-cjser.2":"2026-05-07T05:08:01.158Z","modified":"2026-05-07T05:08:01.331Z"},"maintainers":[{"name":"nanahira","email":"nanahira@momobako.com"}],"description":"Convert tabs to spaces in a string","keywords":["tabs","spaces"],"repository":{"type":"git","url":"https://code.moenext.com/3rdeye/cjser.git"},"author":{"name":"Vadim Demedes","email":"vdemedes@gmail.com"},"license":"MIT","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\n## cjser\n\nThis package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.\nOriginal repository: https://github.com/vadimdemedes/convert-to-spaces\n","readmeFilename":"readme.md","_rev":"1-edc0096f08b0539afbfbb0045f2a135f"}