{"_id":"@afoot/divide","name":"@afoot/divide","dist-tags":{"latest":"0.1.0"},"versions":{"0.1.0":{"name":"@afoot/divide","version":"0.1.0","description":"Add a lil’ divider string beneath a source string. Use it to create separation in console logs or stdout.","author":{"name":"Matthew Smith","email":"code@niftinessafoot.com","url":"https://www.niftinessafoot.com"},"keywords":["module","typescript","string"],"entry":"index.ts","license":"MIT","scripts":{"build":"rollup -c rollup.config.js -i src/index.ts","prebuild":"npm run clean && npm run types","test":"jest","test:coverage":"jest --coverage","clean":"rm -rf dist/*","types":"tsc","docs":"typedoc"},"browserslist":["defaults"],"repository":{"type":"git","url":"git+https://github.com/niftinessafoot/divide.git"},"homepage":"https://github.com/niftinessafoot/divide","type":"module","types":"dist/types/index.d.ts","devDependencies":{"@babel/cli":"^7.19.3","@babel/core":"^7.19.6","@babel/preset-env":"^7.19.4","@babel/preset-react":"^7.18.6","@babel/preset-typescript":"^7.18.6","@rollup/plugin-babel":"^6.0.2","@testing-library/jest-dom":"^5.16.5","@testing-library/react":"^13.4.0","@types/jest":"^29.2.1","@typescript-eslint/eslint-plugin":"^5.42.0","@typescript-eslint/parser":"^5.42.0","eslint":"^8.26.0","eslint-config-prettier":"^8.5.0","eslint-plugin-react":"^7.31.10","eslint-plugin-tsdoc":"^0.2.17","jest":"^29.2.2","jest-environment-jsdom":"^29.2.2","prettier":"^2.7.1","rollup":"^2.79.1","rollup-plugin-terser":"^7.0.2","stylelint":"^14.14.1","stylelint-config-prettier-scss":"^0.0.1","stylelint-config-standard-scss":"^6.0.0","typedoc":"^0.23.20","typedoc-plugin-markdown":"^3.13.6","typescript":"^4.8.4"},"gitHead":"3ba0fdc6c8e3304af80367520be087ac102792c1","bugs":{"url":"https://github.com/niftinessafoot/divide/issues"},"_id":"@afoot/divide@0.1.0","_nodeVersion":"18.10.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-JXLqgyOrILP5whM7N6P6Ugfnbid7wV9TeFD7MDuAum7JdRSofEl0i2yVVe4szHLrFUj1acWuI6ta0KLwKlhb2w==","shasum":"ed67cf10511083d6828911e7c2869c814b07e51e","tarball":"https://registry.npmjs.org/@afoot/divide/-/divide-0.1.0.tgz","fileCount":7,"unpackedSize":8456,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDfXQ5vI8jfbK+Ilqsl1g4f4I8RUlPILrhsLAYfxqc9bwIhAOZj/dM8AjSP21S0+cpDXXtgAUkMlNh6cwq295xuHpwc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjcDAJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqvrw/+N2HkEVRljIQ511wNb7vNnQ4QejSqHKotTCpRL06HsjAgu8Rx\r\ndeYtBj1GJ0S9GZ8N78/bqwereRN3MwSFSJljMMdXhnqKPeXDk7XK+YxM25oG\r\nChQZjsfSPEb5e4+lRn+cyp8ny0KpHTJoxquik/EN8g9ppOU9A7MiSFJVLtdn\r\nEt2MFt/TFigeGnz9CGlYAUMwcEuSh/QA5w/1mt19ACmPAMIbCDke1X4k8P8f\r\n3rG8eJBPJC/IIKYhghdRNoOceJ9/W7eoTSrD+31YWu6JYPBH/PRUoLq4BEMT\r\nFiwGaOaqD3uiIluRzlEJFaxtXflXMBkPsnI0IqAnDFtcgaXZvpMSpUwBEN2+\r\nJ8pi5CXW8b38NMCeD+U655Ylx0WGJuPs6x8IpHfURNHeX2ZPQ++MF+laOB//\r\noCLpoMMg/UZvDA4xVh9hcFj3OL3s2xqbCzI4rW5i4As3aGPT6oi/gkTr+cRL\r\nCIp86cdXmMsR1Wnn11FbBoicDJn3kxUb53VS0l52I9jEbdxkHvS/+SZGBe3b\r\n+pCf6ukQL3ST5EmjhAiKbYPB1386FR45zUqJRa2zhBGbYrPUdo+HKuXeFqkk\r\naOMus+ZYdvouTCUEmckW5UoWskeI1e/nzcXagdr7AC6jY/lr1K0J/hX9JOdp\r\n1foP5eK3GqInk7yrxfRMOyYf8lohiA2y0XU=\r\n=XGmU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"niftinessafoot","email":"niftinessafoot@gmail.com"},"directories":{},"maintainers":[{"name":"niftinessafoot","email":"niftinessafoot@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/divide_0.1.0_1668296712984_0.3674289039719729"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-12T23:45:12.925Z","0.1.0":"2022-11-12T23:45:13.152Z","modified":"2022-11-12T23:45:13.308Z"},"maintainers":[{"name":"niftinessafoot","email":"niftinessafoot@gmail.com"}],"description":"Add a lil’ divider string beneath a source string. Use it to create separation in console logs or stdout.","homepage":"https://github.com/niftinessafoot/divide","keywords":["module","typescript","string"],"repository":{"type":"git","url":"git+https://github.com/niftinessafoot/divide.git"},"author":{"name":"Matthew Smith","email":"code@niftinessafoot.com","url":"https://www.niftinessafoot.com"},"bugs":{"url":"https://github.com/niftinessafoot/divide/issues"},"license":"MIT","readme":"# @afoot/divide\n\nAdd a lil’ divider string beneath a source string. Use it to create separation in console logs or stdout.\n\n## usage\n\nProvide a string and it will return the string and a divider of equal length on a separate line.\n\n```js\nconst output = divide('string');\n/* Returns:\nstring\n-----\n*/\nconsole.log(output);\n```\n\n### config options\n\n#### character\n\nNormally returning a series of hyphens, you can specify any combination of characters with the `character` key in the config object.\n\n```js\nconst output = divide('string', { character: '•–' });\n/* Returns:\nstring\n•–•–•–\n*/\nconsole.log(output);\n```\n\n#### width\n\nOverride the default string length by specifiying a numeric override with `width`.\n\n```js\nconst output = divide('string', { width: 10 });\n/* Returns:\nstring\n----------\n*/\nconsole.log(output);\n```\n\nSetting `width` to less than one omits the divider\n\n```js\nconst output = divide('string', { width: -1 });\n/* Returns:\nstring\n*/\nconsole.log(output);\n```\n\n#### omitSource\n\nReturn _just_ the divider with a length equal to the input length\n\n```js\nconst output = divide('string', { omitSource: true });\n/* Returns:\n------\n*/\nconsole.log(output);\n```\n\n### bypass input\n\nCreate a divider by passing in _only_ a config object with at least a `width`.\n\n```js\nconst output = divide({ width: 5, character: '•' });\n/* Returns:\n•••••\n*/\nconsole.log(output);\n```\n\n## what is this for?\n\nIn honesty, I made this to test Rollup, continuous integrations, and npm packages, but it totally does what it says on the box, too!\n\n## license\n\n[MIT](./LICENSE) © [Matthew Smith](http://www.niftinessafoot.com)\n\n## made with ❤️ and ☕️ by\n\n![Niftiness Afoot!](https://gist.githubusercontent.com/niftinessafoot/2dba588395cb557293d5f09aebcd2ab0/raw/770293c76bead4f0986ff959f3ea8880017d92c0/bot.svg?sanitize=true) [Matthew Smith](https://github.com/niftinessafoot)\n\n```\n\n```\n","readmeFilename":"README.md"}