{"_id":"@bob6664569/content-spinner","_rev":"2-121d21e792f5debac59d2d188f609ab7","name":"@bob6664569/content-spinner","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"@bob6664569/content-spinner","version":"0.1.0","description":"String content spinner with custom input to make it predictable","main":"lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha","prettier":"prettier \"*/**/*.js\" --ignore-path ./.prettierignore --write","lint":"eslint lib/** test/**","git-add":"npm run prettier && npm run lint && npm test && git add . && git status"},"repository":{"type":"git","url":"git+https://github.com/bob6664569/content-spinner.git"},"author":{"name":"Ulflander","email":"xlaumonier@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bob6664569/content-spinner/issues"},"homepage":"https://github.com/bob6664569/content-spinner#readme","dependencies":{},"devDependencies":{"chai":"^4.1.2","eslint":"^4.14.0","mocha":"^4.0.1","pre-commit":"^1.2.2","prettier":"^1.9.2"},"pre-commit":["prettier","lint","test"],"prettier":{"singleQuote":true},"gitHead":"2fcb6810810864eede361651def7f48120a73f08","_id":"@bob6664569/content-spinner@0.1.0","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-JXPnOA/970hDGPSm+0CacDSLxW/nyBS+lAh3RYkg86xO7HSzlgGKnCzU8wjLmc6MjFkU3A5X2ci63o86WJC0XA==","shasum":"591db9050c592f5885215ce6bcddaf1f1191e586","tarball":"https://registry.npmjs.org/@bob6664569/content-spinner/-/content-spinner-0.1.0.tgz","fileCount":14,"unpackedSize":37162,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQE8OCRA9TVsSAnZWagAACBMP+wVRhdvcWgz92Z/Tv4TF\nt1rN8/t38fJw1Xh1mOb8fZV3+ZRIz3/BFircvD7m87w+QEo2HC9zLvokTbMR\nH6t/xNc5PBSsSGjX32NckE+xkDLg46qCBaKPt0T4zwCI3kA5ICb4q+LD3fxW\nSoe1AW8L8PfYQ3ueF4Z3vCxMY7YKfh262aqieKkBjTkoqjAWujD82UFzkMsa\nQt/vT85bEmLRErQ5TjVFqmwfarDcDZ8RohPqbD/NCfvTASHXiRPspK8bDa5h\njOECmRUd491O1HnPPgFqvx22xz9+E7vi2gSEJEusGuCk/d4G6eGdU3GRCwnf\nOf28Sp7h59Jam7DLhU7J/oN57lX571qrf/QqUHZi6SZNej8k08TI0vlsk7/0\nfjpraWGwJydOzgTjhA0t7pI4sZJDZ5IcNwuicgLUpgXroQXdc6JXRLkLWGqr\nMb2wQd9B9TYTz2YXOediTiDhyc0kuLHtBkRvyjW4E9CZPtCSYbEgWePhY3Hr\nqPzCrOy3x8RcZu4mFgUm995HT7VEjozHeOfHSWDaIecYuOIKs5ByEevVxXId\nOtIm7MsG0q6xjmSKKyQa3cVPV/Gom6tkCN37kk2MdcGacZrDA7dN5IOVdACU\nP3zSW/TgYzbO+G472fWcfeXnozbriHOERsmi243gyKwkb6tz/rTlCYnU6Luj\nQPE9\r\n=R8Gt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFVzV/l+lep06iprHo859TJF3HD1Yxiag3rJ4Dh/OWycAiEA7dzrDnkAJpX+9uRvkOe+CJEuovRy2uEGNdtouQ2K1Ck="}]},"maintainers":[{"name":"bob6664569","email":"johan@trilogik.net"}],"_npmUser":{"name":"bob6664569","email":"johan@trilogik.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-spinner_0.1.0_1581272845842_0.08195854387936152"},"_hasShrinkwrap":false},"0.1.1":{"name":"@bob6664569/content-spinner","version":"0.1.1","description":"String content spinner with custom input to make it predictable","main":"lib/index.js","scripts":{"test":"./node_modules/mocha/bin/mocha","prettier":"prettier \"*/**/*.js\" --ignore-path ./.prettierignore --write","lint":"eslint lib/** test/**","git-add":"npm run prettier && npm run lint && npm test && git add . && git status"},"repository":{"type":"git","url":"git+https://github.com/bob6664569/content-spinner.git"},"author":{"name":"Ulflander","email":"xlaumonier@gmail.com"},"license":"MIT","bugs":{"url":"https://github.com/bob6664569/content-spinner/issues"},"homepage":"https://github.com/bob6664569/content-spinner#readme","dependencies":{},"devDependencies":{"chai":"^4.1.2","eslint":"^4.14.0","mocha":"^4.0.1","pre-commit":"^1.2.2","prettier":"^1.9.2"},"pre-commit":["prettier","lint","test"],"prettier":{"singleQuote":true},"gitHead":"d11669d31c335cb68cb8440895ba01e4559de665","_id":"@bob6664569/content-spinner@0.1.1","_nodeVersion":"13.7.0","_npmVersion":"6.13.7","dist":{"integrity":"sha512-fe/KS2tzSAJor5Yvi2NVa7GwgkIrF5qQU6W3zLtaZxbVMwR89kAadbuGY1afqQ33HfmzPRx6SbAmA13H/7gxWg==","shasum":"b979bb378297a35dee1ea03dfc43d0b8342ef4b8","tarball":"https://registry.npmjs.org/@bob6664569/content-spinner/-/content-spinner-0.1.1.tgz","fileCount":14,"unpackedSize":37168,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeQFHzCRA9TVsSAnZWagAAZfkQAKEF5xZ83VdmBpxXK+P9\nlUqU0VdvdZS4GiR2BrNtEL8IW7tK+ZUx2VNvgvdYGx8cGRCXj5PcPcC90ffo\nPsd97F1SzstTfqfTwOZW9sDqhaHUqHWJ+9QGD9lSp+DG4Jhuru3JA4bJ+Bf4\nMM3QbZ9svsIqjRlgkpFWQx/NOmuNavMjHMNwUpMkQYb1hYRjKxDMFH0D2MCf\nZzNEthK8PeAGKijFab9GCKfGdFLaQOE3tM11SDX4S2tfnrYEbHfFEupmsZUW\ng8cXhVCBpTKGSB8tatnu9OEgu0Hkno7e7JghXJAW6WeFtj8OcsusLSCjdcoS\ntAfuWYUpATN4CI0fTgqucCVa01nHeUVGM8RcWP80aaw12FnOTakFepbVFOnH\n3MF8b7xTY9+Uzz68kmb6A/Tv1vTvh0/99IyQWVbXJkEzxNPQfunC1clX7m5h\nxH/x0VjNOSqkvS59mo7tEn7miUiTmHdaZeRPia+SQj04tvMcuCsvqeG+oZEe\nNg2wHtMxgKQ/XxtCNJTWfd0NoWp9cbgLaZCrgLQG067IpKNdJVIra96l3XpA\ndy7JfKBUEye4lqm9sA7ETixkpat5QRThlNfmYXXfV7JDsUnAEYN9lhoW4xEC\nGvkUIa+Lfkkkt9OlaCa87SG3Yes8bKRmz73Iev5bNUjaHaGaK3zuw4vz4Plg\ntagL\r\n=ZbCe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDq6bh6WMRWF1SSx50T9R1Iglu0I7frrDzRc7OD1iSrvQIgIZXkmJsqKUBuaWgjhcXNW5s31W5jNj+XoPUIo6PI5YE="}]},"maintainers":[{"name":"bob6664569","email":"johan@trilogik.net"}],"_npmUser":{"name":"bob6664569","email":"johan@trilogik.net"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/content-spinner_0.1.1_1581273586878_0.5197544392071449"},"_hasShrinkwrap":false}},"time":{"created":"2020-02-09T18:27:25.806Z","0.1.0":"2020-02-09T18:27:25.974Z","modified":"2022-04-04T19:55:13.930Z","0.1.1":"2020-02-09T18:39:46.977Z"},"maintainers":[{"name":"bob6664569","email":"johan@trilogik.net"}],"description":"String content spinner with custom input to make it predictable","homepage":"https://github.com/bob6664569/content-spinner#readme","repository":{"type":"git","url":"git+https://github.com/bob6664569/content-spinner.git"},"author":{"name":"Ulflander","email":"xlaumonier@gmail.com"},"bugs":{"url":"https://github.com/bob6664569/content-spinner/issues"},"license":"MIT","readme":"# content-spinner\n\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\nNode.js recursive content spinner algorithm with repetable behavior. \n\nBased on [string-content-spinner](https://github.com/heek/string-content-spinner) ([@heek](https://github.com/heek/))\n\n### API\n\n#### `spin` function\n\nSpin a string.\n\nParameters:\n\n```js\nspin(stringToSpin: string[, seed: string]);\n```\n\n####Example without seed parameter:\n\n```js\nconst spin = require(-content-spinner');\n\nconst result = spin('{Hello|Good morning} world');\n\nconsole.log(result);\n```\nThis will log either `Hello world` or `Good morning`.\n\n####Example with a seed parameter:\n\n```js\nconst spin = require('predictable-content-spinner');\n\nconst result = spin('{Hello|Good morning} world', 'Random text');\n\nconsole.log(result);\n```\nThis example will always product the same output with the same string passed\n\n#### `factory` function\n\nGenerates a new `spin` function with custom section markers and delimiter.\n\nParameters:\n\n```js\nfactory(openSectionMarker: string, closeSectionMarker: string, delimiter: string);\n```\n\nExample:\n\n```js\n// Get factory function\nconst spinFactory = require('string-content-spinner').factory;\n\n// Generate new spin function with custom section markers and delimiter\nconst spin = spinFactory('[[', ']]', '::');\n\n// Use it!\nconst result = spin('Hello [[world::mars]]');\n\nconsole.log(result);\n```\n\nThis will log either `Hello world` or `Hello mars`.\n\n### Development\n\n#### NPM commands\n\n- `npm run prettier`: run prettier on source files (both lib and test files)\n- `npm run lint`: lint source files (both lib and test files, using `eslint`)\n- `npm test` or `npm run test`: run unit tests\n- `npm run git-add`: run prettor, lint and unit tests, if all passed, stage changes\n\n\n","readmeFilename":"README.md"}