{"_id":"unshackle","_rev":"64-f7250337195649c6583aa8612d558bab","name":"unshackle","dist-tags":{"latest":"1.1.0"},"versions":{"1.0.1":{"name":"unshackle","version":"1.0.1","author":{"name":"Tim Nunamaker","email":"tim.nunamaker@bazaarvoice.com"},"license":"SEE LICENSE IN LICENSE.md","_id":"unshackle@1.0.1","maintainers":[{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"}],"homepage":"https://github.com/bazaarvoice/unshackle#readme","bugs":{"url":"https://github.com/bazaarvoice/unshackle/issues"},"dist":{"shasum":"713aa54acf8b338a3392983288eff816c866548e","tarball":"https://registry.npmjs.org/unshackle/-/unshackle-1.0.1.tgz","integrity":"sha512-SuHvFkHxnzbDyWIM7DWVs5fL275b+YwMUtt9MGbnbuEymUro8h0DFJfebkzFqX9PSeRPulkoxS6o1vQhXcBp5Q==","signatures":[{"sig":"MEUCIQCmFz8Bgu7Bds4ON9S/YNeNHV/0uYlWoykFZKlbXBf8KwIgPykwJZ0vWP11b8xY5nrLhH4QxqHoB+iwLkYm2jaNsXg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"testRegex":"(/tests/[^\\.]*|\\.(test|spec))\\.(js|jsx)$"},"main":"main.js","_from":".","_shasum":"713aa54acf8b338a3392983288eff816c866548e","gitHead":"5e247062340c89063485b7aca6a925660b7bca7e","scripts":{"lint":"eslint main.js lib test","test":"jest tests"},"_npmUser":{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"},"repository":{"url":"git://github.com/bazaarvoice/unshackle.git","type":"git"},"_npmVersion":"3.10.3","description":"A JavaScript software release script runner.","directories":{},"_nodeVersion":"6.3.0","devDependencies":{"jest":"^16.0.2","eslint":"^3.8.1","minimist":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/unshackle-1.0.1.tgz_1480619965490_0.4326281058602035","host":"packages-12-west.internal.npmjs.com"}},"1.0.2":{"name":"unshackle","version":"1.0.2","author":{"name":"Tim Nunamaker","email":"tim.nunamaker@bazaarvoice.com"},"license":"SEE LICENSE IN LICENSE.md","_id":"unshackle@1.0.2","maintainers":[{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"tianx2","email":"chris.huang@bazaarvoice.com"},{"name":"ceejtron","email":"c.johannessen@gmail.com"},{"name":"acarrasco","email":"alejandro.carrasco@bazaarvoice.com"},{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"},{"name":"aterranova-bv","email":"andrew.terranova@bazaarvoice.com"},{"name":"uxtx","email":"me@davebir.ch"},{"name":"urthen","email":"urthen@gmail.com"},{"name":"noirbot","email":"thenoirbot@gmail.com"},{"name":"danheberden","email":"danheberden@gmail.com"},{"name":"reason-bv","email":"reason@bazaarvoice.com"},{"name":"engineering-admin-npm","email":"engineering-admin-npm@bazaarvoice.com"}],"homepage":"https://github.com/bazaarvoice/unshackle#readme","bugs":{"url":"https://github.com/bazaarvoice/unshackle/issues"},"dist":{"shasum":"f722fd000ce0d59ed470d57f3d9dd47bbef28874","tarball":"https://registry.npmjs.org/unshackle/-/unshackle-1.0.2.tgz","integrity":"sha512-7RfiKSgDO4uC2roPrObDU4OzdedO2GugLPsmuG9N5XYZgcCOwW1uymidv52kNU4ETkA8qz32bIGIO7kI4qM/OQ==","signatures":[{"sig":"MEUCIFxQVO4ZHT3NcHLdcZlAf3UYnEZ9cJJPdlwMv/s/a7lVAiEAjqams3XMB6/xdOGjbLdZ+FY26bAZYS2rC03WIaTmsqI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"jest":{"testRegex":"(/tests/[^\\.]*|\\.(test|spec))\\.(js|jsx)$"},"main":"main.js","gitHead":"fa4911b4e6cfc8b8a377bb6aabe176942629dc84","scripts":{"lint":"eslint main.js lib test","test":"jest tests"},"_npmUser":{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"},"repository":{"url":"git://github.com/bazaarvoice/unshackle.git","type":"git"},"_npmVersion":"5.4.2","description":"A JavaScript software release script runner.","directories":{},"_nodeVersion":"8.1.2","devDependencies":{"jest":"^16.0.2","eslint":"^3.8.1","minimist":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/unshackle-1.0.2.tgz_1508427069288_0.6592708288226277","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"unshackle","version":"1.1.0","author":{"name":"Tim Nunamaker","email":"tim.nunamaker@bazaarvoice.com"},"license":"SEE LICENSE IN LICENSE.md","_id":"unshackle@1.1.0","maintainers":[{"name":"danheberden","email":"danheberden@gmail.com"},{"name":"engineering-admin-npm","email":"engineering-admin-npm@bazaarvoice.com"},{"name":"noirbot","email":"thenoirbot@gmail.com"},{"name":"reason-bv","email":"reason@bazaarvoice.com"},{"name":"sirugh","email":"stephenrugh@gmail.com"},{"name":"tianx2","email":"chris.huang@bazaarvoice.com"},{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"}],"homepage":"https://github.com/bazaarvoice/unshackle#readme","bugs":{"url":"https://github.com/bazaarvoice/unshackle/issues"},"dist":{"shasum":"38a51cf9f7e44105cf2c0f17fc1f9538e9ba2608","tarball":"https://registry.npmjs.org/unshackle/-/unshackle-1.1.0.tgz","fileCount":12,"integrity":"sha512-BslAtjcoDTsZZ/Cyq+qz95S60j3KxiU7f1uiOdkLd0xCBwenyytqsPPPboAdwSmSPqFPQFqTb5FvRmYrHDO10w==","signatures":[{"sig":"MEYCIQDg+TcpDAJ3lv/qVk/leUxIftUDYSKY7HlWJFfCHkXt1gIhAJMT3Q+EAj/KwIl7Ird4AsRX+6Z8nwmCFVzzNBHTfJwW","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22480,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb6evpCRA9TVsSAnZWagAAk2sQAILhmAdadJXAqW+aUoa1\nlhINldbF67l+noLJCU2Scg4dV1uobflV3VvQ3U59efVp8eTd0JDbTRq8NJQV\nVUxLbttWzWGItz4dCK3jAQKWvGbZwAScboJ143YAjs7zD+23YfnBJEaABjFR\nVR4xnRT5szOIv51SHhkW+Wb9dG9/js99e8p1L1jbv7X0bviaa8g4hmxPKWbD\nTfXNj4shQ/mjA/PPaC/D9MnPJyDbzGU4z2ipoMRMHqpJVVRY9d3QmVhHzm32\n7muiUT3HmK0BF9HGt151HQWIV93QUYXWxC5pnFABJQRoi6SSwrmgFsNoz/Rk\ntH7pkUnIZUT97sAIsg+HA07atCbAt2qZsl07U+NvTMT2qauTQ3Un097mhp1E\ns4/0dh+e4IHWUvT6KRtarFQzJDaCFxKpo8I52/e1BPZKZgutZjk+gdSQzGKK\nUWaFxJWrLDvIz6NM42iT16UXWMCNFCTlGIg0VmvX3PTglk9YxLDfcKcLfbog\nffxWYhM3IHiYY3na3CGwE4728bKlkBn5uZhXfVTueEahPc/CfNsntX5W3Gs3\n6nrHiuHfDDnCx8T0fWIiaTMXF2nFISHeMYsgAwXZ0uId5ujEpy87RtWestix\nkG6+p+mpt/+svFTDnOciAY6+6w3BjtL+8F0u7WrQJXep5WhHnt4Y7ZsX4i4A\n+mDZ\r\n=3HWb\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testRegex":"(/tests/[^\\.]*|\\.(test|spec))\\.(js|jsx)$"},"main":"main.js","gitHead":"20f67f024ea4e6ec7c1aedf1126e238b14cdab5d","scripts":{"lint":"eslint main.js lib test","test":"jest tests"},"_npmUser":{"name":"tnunamak-bv","email":"tim.nunamaker@bazaarvoice.com"},"repository":{"url":"git://github.com/bazaarvoice/unshackle.git","type":"git"},"_npmVersion":"6.4.1","description":"A JavaScript software release script runner.","directories":{},"_nodeVersion":"10.13.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^16.0.2","eslint":"^3.8.1","minimist":"^1.2.0"},"_npmOperationalInternal":{"tmp":"tmp/unshackle_1.1.0_1542056937324_0.10609500664827842","host":"s3://npm-registry-packages"}}},"time":{"created":"2016-12-01T19:00:10.707Z","modified":"2026-09-20T13:01:00.334Z","1.0.0":"2016-12-01T19:00:10.707Z","1.0.1":"2016-12-01T19:19:27.396Z","1.0.2":"2017-10-19T15:31:10.334Z","1.1.0":"2018-11-12T21:08:57.412Z"},"bugs":{"url":"https://github.com/bazaarvoice/unshackle/issues"},"author":{"name":"Tim Nunamaker","email":"tim.nunamaker@bazaarvoice.com"},"license":"SEE LICENSE IN LICENSE.md","homepage":"https://github.com/bazaarvoice/unshackle#readme","repository":{"url":"git://github.com/bazaarvoice/unshackle.git","type":"git"},"description":"A JavaScript software release script runner.","maintainers":[{"email":"engineering-admin-npm@bazaarvoice.com","name":"engineering-admin-npm"},{"email":"varsha.adiga@bazaarvoice.com","name":"varsha.adigabv"},{"email":"anish.prabhu@bazaarvoice.com","name":"anish_bvoice"},{"email":"soumen.saniel@bazaarvoice.com","name":"soumen-saniel"},{"email":"Nandeesh.Shivanandan@bazaarvoice.com","name":"nandeesh-hs"},{"email":"nirmalya.roy@bazaarvoice.com","name":"nroy"},{"email":"nithin.jayaram@bazaarvoice.com","name":"njayaram"},{"email":"daniel.hamilton@bazaarvoice.com","name":"danielhamilton-bv"},{"email":"alan.lapthorn@bazaarvoice.com","name":"alanlapthorn-bv"},{"email":"ksu_dp@ua.fm","name":"ksu_dp"},{"email":"edward.davies@bazaarvoice.com","name":"edwarddavies-bv"},{"email":"sindhu.srinivasan@bazaarvoice.com","name":"sindhusrinivasan-bv"},{"email":"shankar.samidala@bazaarvoice.com","name":"shankarsamidala-bv"},{"email":"amal.kuriakose@bazaarvoice.com","name":"amalkuriakose-bv"},{"email":"shane.ohanlon@bazaarvoice.com","name":"sohanlon-bv"},{"email":"nidheesh.c@bazaarvoice.com","name":"nc008-bv"},{"email":"murali.purushothaman@bazaarvoice.com","name":"murali.purushothaman-bv"},{"email":"vinayaka.arashanagi@bazaarvoice.com","name":"vinay-bv"},{"email":"ramakrishna.arishinaguppi@bazaarvoice.com","name":"rarishinaguppi-bv"},{"email":"arjun.krishna@bazaarvoice.com","name":"arjunkrishna-bv"},{"email":"madhusudana.onteddu@bazaarvoice.com","name":"madhusudana"},{"email":"charlie.tizzard@bazaarvoice.com","name":"charlietizzard-bv"},{"email":"gautamraj.kumawat@bazaarvoice.com","name":"gkumawat-bv"},{"email":"shruti.singhania@bazaarvoice.com","name":"ssinghania-bv"}],"readme":"<p align=\"center\">\n  <!-- Borrowed under a CC0 Public Domain license from https://pixabay.com/en/animal-game-asset-call-invertebrate-1296937/ -->\n  <img alt=\"unshackle\" src=\"https://cloud.githubusercontent.com/assets/1095217/19737639/cf70c50c-9b79-11e6-8d46-8d469c7c3b76.png\" width=\"480\">\n</p>\n\n<p align=\"center\">\n  <a href=\"https://travis-ci.org/bazaarvoice/unshackle\">\n    <img alt=\"Travis Status\" src=\"https://travis-ci.org/bazaarvoice/unshackle.svg?branch=master\">\n  </a>\n</p>\n\n## About\n\nUnshackle is a small release scripting [DSL](https://en.wikipedia.org/wiki/Domain-specific_language) for JavaScript projects. If releasing new versions of your JavaScript application involves running the same dozens of Git commands, intermixed with various CLI tools and manual by-a-human steps, it might be for you. In particular, unshackle aims to provide a simple language for combining a series of shell, human, and arbitrary JavaScript tasks.\n\n## Installation\n\n```bash\nnpm install unshackle\n```\n\n## Usage\n\nTypical usage involves writing a script for your release that loads the unshackle\npackage and uses it to execute a series of steps.\n\nYou can execute your script and view its output in the console. Prompts will\npause and wait for your input.\n\nFor now, you must run your script from the working directory that any shell\ncommands should start in.\n\n```javascript\n#!/usr/bin/env node\n\nconst unshackle = require('unshackle')\n\n// Create a bucket for remembering state throughout the run.\nconst state = {}\n\nunshackle\n.start('You are starting an example release. Good luck.')\n// Print does what you expect.\n.print('First on the agenda, listing files with ls.')\n\n// Run executes string commands in a shell.\n.run('ls')\n\n// Prompts pause for user input.\n.prompt('What is your favorite letter?', ['a', 'b', 'c'])\n\n// JavaScript steps are functions that accept the output of preceding steps as\n// input.\n.run(letter => console.log(`Proceeding with a release for the letter ${letter}.`))\n\n// JavaScript steps can return a promise to perform asynchronous tasks.\n.run(() => {\n  console.log('Crunching numbers, or something...')\n  return new Promise (resolve => setTimeout(resolve, 3000))\n})\n\n// Use state to remember user input.\n.prompt('What is your favorite letter now?', ['a', 'b', 'c'])\n\n// Define a labeled mark in the process.\n.run('trap-state', letter => state.letter = letter)\n\n// Use the unshackle runner in a custom step, making sure to return the promise\n// property, to block.\n.run(() => unshackle.prompt(`Please manually confirm your appreciation for the letter ${state.letter}.`).promise)\n\n// Use fail to abort and exit if something goes wrong.\n.run(() => {\n  if (Math.random() < .1) {\n    unshackle.fail('Today is not a good day.')\n  }\n})\n\n// Exit the entire process, with a message.\n.done('Thanks! This release has been a success.')\n```\n\n### Relocating your release script\n\nIf you want to edit a release script that is in source control, you might want\nto make a copy of it outside of your project. For example, if changes were to\nmake your Git working directory dirty, for example, it could interfere with\ncertain Git commands you might have in your release script.\n\n### Marks\n\nSteps have an optional first argument for defining a mark. Marks are useful in\nthat they create readable labels in the output of your release, and they give\nyou a way to restart failed or incomplete releases at a certain step.\n\nYou can start from a mark by passing it as a second argument to\n`unshackle.start`. Starting from a mark skips all steps before that mark, with\nsome exceptions. There may be steps that occur before the mark that are\nrequired to run, usually those that prompt the user for information, as no\ninformation is saved between executions of your release script. You can\nforce such a step to always run, and prompts always run by default.\n\n```javascript\nconst state = {}\n\nunshackle\n// An optional step to print a message. It can also be used to specify a mark.\n.start('Starting a release', 'deploy')\n\n// This step is skipped, because it is before the \"deploy\" mark.\n.run('echo \"You should not be reading this\"')\n\n// At this point in time, prompts are never skipped and will always run.\n.prompt('What type of release is this?', ['major', 'minor', 'patch'])\n\n// The true parameter forces this step to run, even when starting from the\n// \"deploy\" mark\n.run(type => state.type = type, true)\n\n// This step has the \"deploy\" mark, so when used, all steps from here on will\n// run.\n.run('deploy', () => {\n  deployVersion(state.type)\n})\n\n// This prints a message and exits the entire process.\n.done('Deployment complete')\n```\n","readmeFilename":"README.md"}