{"_id":"sort-scripts","_rev":"3-275c0d37fae461be9c0c29d9b14cde65","name":"sort-scripts","description":"Sort a map of scripts in a logical order","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"sort-scripts","version":"1.0.0","description":"Sort a map of scripts in a logical order","main":"index.js","scripts":{"test":"jest","prepublish":"yarn test","precommit":"lint-staged","prepush":"yarn test","format":"prettier --single-quote --trailing-comma es5 --write \"*.js\""},"repository":{"type":"git","url":"git+https://github.com/camacho/sort-scripts.git"},"author":{"name":"Patrick Camacho","email":"patrick@daftdevelopers.com"},"license":"MIT","bugs":{"url":"https://github.com/camacho/sort-scripts/issues"},"homepage":"https://github.com/camacho/sort-scripts#readme","devDependencies":{"husky":"^0.14.3","jest":"^20.0.4","lint-staged":"^4.0.3","prettier":"^1.5.3"},"lint-staged":{"*.js":["prettier --single-quote --trailing-comma es5 --write","git add"]},"keywords":["sort","package","scripts","ordering","documentation","docs"],"gitHead":"5e55c766c186785af3b5448422f4f94fb20c7a4c","_id":"sort-scripts@1.0.0","_npmVersion":"5.3.0","_nodeVersion":"8.1.4","_npmUser":{"name":"camachgk","email":"patrick@daftdevelopers.com"},"dist":{"integrity":"sha512-HJXTX80L0IY48XKjTS2QUC1Lu0+4Ll3mmu0oFlZbXUzC1tb2mh/AHpPjckdkCGvIWNhNOBhPichdUhnbPi62mw==","shasum":"1753f8e281758e6084092bc19c624d185be08f5a","tarball":"https://registry.npmjs.org/sort-scripts/-/sort-scripts-1.0.0.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhM6F9OeIV3/mBCbe5kODOE5dP12IrPOmQT7GC4whBcQIgYluV/tnabBGjWIA3jqDKxFkQ41vNl4IALhCbomeAwow="}]},"maintainers":[{"name":"camachgk","email":"patrick@daftdevelopers.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort-scripts-1.0.0.tgz_1502992933119_0.7633266260381788"},"directories":{}},"1.0.1":{"name":"sort-scripts","version":"1.0.1","description":"Sort a map of scripts in a logical order","license":"MIT","repository":{"type":"git","url":"git+https://github.com/camacho/sort-scripts.git"},"bugs":{"url":"https://github.com/camacho/sort-scripts/issues"},"homepage":"https://github.com/camacho/sort-scripts#readme","author":{"name":"Patrick Camacho","email":"patrick@daftdevelopers.com"},"keywords":["sort","package","scripts","ordering","documentation","docs"],"main":"index.js","scripts":{"format":"prettier --single-quote --trailing-comma es5 --write \"*.js\"","prepublishOnly":"jest","test":"jest"},"husky":{"scripts":{"pre-commit":"lint-staged","pre-push":"yarn test"}},"lint-staged":{"*.js":["prettier --single-quote --trailing-comma es5 --write","git add"]},"devDependencies":{"husky":"^2.7.0","jest":"^24.8.0","lint-staged":"^8.2.1","prettier":"^1.18.2"},"licenseText":"MIT License\n\nCopyright (c) 2017 Patrick Camacho\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","_id":"sort-scripts@1.0.1","dist":{"shasum":"c1d27f2a7d95d1d0d3d6303f1b949abaaa695b55","integrity":"sha512-58eys3wXg05rI51Gg/90Uvc0id0aboGLSzHm4nFvuD0MofSg/y8cyJ7ZqYuZ1eyj6AA8XwFTGaXA+6tApsMv4w==","tarball":"https://registry.npmjs.org/sort-scripts/-/sort-scripts-1.0.1.tgz","fileCount":8,"unpackedSize":4411,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdFgoWCRA9TVsSAnZWagAAm4kP/ikasbfwWyeq8fCvIA9T\nD8OyIOo4uz4WjaysKbv31K6fH32I4F6xRuRSkRI0AfMzCXgsE/qILjshWuio\nl11xVqx8YAK1h3kEqi0ip/5E9HDge8u++ls0pYAhcoJf8H05kbLNqL0pASo/\naarNlTx2aRbTIxDU9vuI5spyIOoRH6UY47+TTJg4irzIhb9WlOlV+1WTqqJs\npJ1xpTKSUrcL+sesy084lLiAGYQwbCOuwyCAAxax8H4eFqQM9lJx5aGRHsmO\nvgUjcvcedjEEAkZGlpT9iGRI12f/nNFdyO6oQV8pIrKEpKCo09AjgumimCcv\nCBcWw2eHG8u3LTsUX5DCXtltrCQRmnBNPvGWAvR5i1Ym9eOGyVRc0XmWlVvP\nFuvfpvfM2vrm5T/dRY1WgLLr5/FQpA1JVuMnxBES+xNKLeOMqheOxesgxwec\nfCa+JOZE6AbdqCjnpfZLWrUx2nAw1Py38fTOBtgY2Ltt2j6ZwyNXrOow0zvQ\n3B3LBKrhe7wsAd4+GMOQ+9jqYD7OOdozoXFC+BSRA7MTYdQsKLz5rdcJd3Ts\n1cVa42nV7bagCRQMXKN4tWvOIpBI1GXlgLTo9ysC7ZYUaQuJOi5S3RpedXiP\nx9P0u1HbSrZ9Wf5ch5HvyJL0ufZ9zcX7gpUJYlgKSxGv4bvxoHrLnDff0p4x\nqDT+\r\n=bvGL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDA95QyXB8nwdX7E2IqIYx66f2gDPnZUrsGa1DI7eQJOAIgJhKW6aa1ZI799FAJ+bmoBPr5zsdSIeIGns8zRkRFx7s="}]},"maintainers":[{"email":"patrick@daftdevelopers.com","name":"camacho"}],"_npmUser":{"name":"camacho","email":"patrick@daftdevelopers.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sort-scripts_1.0.1_1561725461491_0.035393600080282805"},"_hasShrinkwrap":false}},"readme":"# sort-scripts\nSort scripts based on prefix and suffix\n\n# Usage\n\nGiven an map of script names to behavior (as is found in `package.json` files for Node projects), sort the scripts in a logical order, considering `pre` and `post` prefixes:\n\n```js\nconst sort = require('sort-scripts');\nconst scripts = {\n  test: \"jest\",\n  pretest: \"check-engines\",\n  postmerge: \"lint-staged\",\n  docs: \"markdown-magic\",\n  postdocs: \"echo \\\"'.md' files updated\\\"\"\n};\n\nsort(scripts);\n// [\n//   [\"docs\", \"markdown-magic\"], \n//   [\"postdocs\", \"echo \\\"'.md' files updated\\\"],\n//   [\"postmerge\", \"lint-staged\"],\n//   [\"pretest\", \"check-engines\"],\n//   [\"test\", \"jest\"]\n// ]\n```\n","maintainers":[{"email":"patrick@daftdevelopers.com","name":"camacho"}],"time":{"modified":"2022-05-18T08:35:55.198Z","created":"2017-08-17T18:02:13.195Z","1.0.0":"2017-08-17T18:02:13.195Z","1.0.1":"2019-06-28T12:37:41.645Z"},"homepage":"https://github.com/camacho/sort-scripts#readme","keywords":["sort","package","scripts","ordering","documentation","docs"],"repository":{"type":"git","url":"git+https://github.com/camacho/sort-scripts.git"},"author":{"name":"Patrick Camacho","email":"patrick@daftdevelopers.com"},"bugs":{"url":"https://github.com/camacho/sort-scripts/issues"},"license":"MIT","readmeFilename":"README.md"}