{"_id":"stepfunctions-localhost","_rev":"3-fa3bbce619460a37cf44a17a98668fe7","name":"stepfunctions-localhost","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"stepfunctions-localhost","version":"0.1.0","description":"A package to install and run AWS's [Step Functions](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html) locally.","main":"index.js","scripts":{"test":"xo"},"author":{"name":"Max Isom","email":"codetheweb@icloud.com","url":"https://maxisom.me"},"license":"MIT","xo":{"space":true},"devDependencies":{"xo":"^0.24.0"},"dependencies":{"del":"^4.1.1","fs-extra":"^8.0.1","ora":"^3.4.0","tar":"^4.4.10","zlib":"^1.0.5"},"keywords":["🛠","aws","step functions","state machines","step","function","state","machine","serverless","local","offline"],"bugs":{"url":"https://github.com/codetheweb/stepfunctions-localhost/issues"},"homepage":"https://github.com/codetheweb/stepfunctions-localhost#readme","repository":{"type":"git","url":"git+https://github.com/codetheweb/stepfunctions-localhost.git"},"gitHead":"e67a65a7378502bafdc368f5385a32f667a2e03e","_id":"stepfunctions-localhost@0.1.0","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-YzEacyZwIyAM9VYbwdt6KnbZRBf/IXLHSiWbYKGD0dIxZmsx6Lvx5mUsRBGIuLHEa5+GHw2eDEqZj7P/Kb215Q==","shasum":"c4548b14b2b32d1bc5f2816dad2be7ccc289b89d","tarball":"https://registry.npmjs.org/stepfunctions-localhost/-/stepfunctions-localhost-0.1.0.tgz","fileCount":7,"unpackedSize":10418,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdBD1bCRA9TVsSAnZWagAAqyUP/0vMzy1z1vG8OFMHGrq6\nUv4wOF5pn7itvJaIKlvKNmzHiwY7KjaWT7x51Sag+7Iiaz40UjoXgN1YncOP\nHYoChoc9QtZC3ScUxXAIk+tsH2c+ixXyF6UfYiGawlaPnGSBuFWvLI/tFLlM\ndYIcF6N0YwxXSwSi8U1QZvnHFcg3F1iRm+441I+284K1X/8gi5Fg8c42Zq3i\nFcf01Ozh6OQXD9rv0KEX/28nzLA/IEhbLa7faJXYCb+b67myaN7XEiea1VMu\nGtL+0a+hHvKwrUtgoZmAtm+hZYgw4w36Lyc3KR/pcz03znAgy4kL+VlcAX8h\neyb11yIAu+PVyTF7QI8ZwUq8O+mVXAxFle0Ogktnp8iusEcOXiX/RgeFiy8p\nznC2t60eOwo7UR7aodhGJM4nYGjzBX/X/vFmDrLdoTTBHx79po1C3u1RZ33A\nNoyu8hw449DmeD372EhNc3N+ZqU/j2kCQBUpI4Ji9+KJaROkNSt5IgjXrDKe\nttXt2JbIHY73w9XtY6NV32x7dzdPVv8y75fwS+6NMMkyQ0RgGu2fqZ9Rp8kt\n03TNk6Fc/AG4ouOsx15Gg4EXVl9CnkQPHlPDOJjIdZHVucrb/Rqmd/PYibWf\nbFXqPu3XIJW1IHb8hpncbx787as86gtZ2gvFNBpZFC3+4IzJ/r9qZuMH79ji\ne64i\r\n=BMlK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyhFrkA8IZsNrrYeB+SHmFsYRp8rvzRkeDpFYGhRlndAiEAlzyQ3s8SuYLnBuBf0RlG7Rq3aw4/QtYP+lPcOzZD1lQ="}]},"maintainers":[{"name":"codetheweb","email":"codetheweb@icloud.com"}],"_npmUser":{"name":"codetheweb","email":"codetheweb@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stepfunctions-localhost_0.1.0_1560558938173_0.2916668963443201"},"_hasShrinkwrap":false},"0.1.1":{"name":"stepfunctions-localhost","version":"0.1.1","description":"A wrapper for AWS's [Step Functions Local](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).","main":"index.js","scripts":{"test":"xo"},"author":{"name":"Max Isom","email":"codetheweb@icloud.com","url":"https://maxisom.me"},"license":"MIT","xo":{"space":true},"devDependencies":{"xo":"^0.24.0"},"dependencies":{"del":"^4.1.1","fs-extra":"^8.0.1","ora":"^3.4.0","tar":"^4.4.10","zlib":"^1.0.5"},"keywords":["🛠","aws","step functions","state machines","step","function","state","machine","serverless","local","offline"],"bugs":{"url":"https://github.com/codetheweb/stepfunctions-localhost/issues"},"homepage":"https://github.com/codetheweb/stepfunctions-localhost#readme","repository":{"type":"git","url":"git+https://github.com/codetheweb/stepfunctions-localhost.git"},"gitHead":"5e8488b09aadd3f5e16e15caec535c245494f804","_id":"stepfunctions-localhost@0.1.1","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-HVOdQIlYJlEiC5DS7WIOo55gVRJcXzMgMZ2HFmyVBzyUlgb6cIw0R0fVHCp8dlGhRgVXTNGnGfUoU14zWMSe9Q==","shasum":"7ae62cd65f7c641fed5c52f9c7327f9ccc173a03","tarball":"https://registry.npmjs.org/stepfunctions-localhost/-/stepfunctions-localhost-0.1.1.tgz","fileCount":7,"unpackedSize":10752,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB7l9CRA9TVsSAnZWagAAwh0P/2eFSK0amnrQLVqE7oFE\n/LQUImROtmxgMMpUOJtcsN3UKMkW/9Y/bFVliDLnMZIxeTsZ/R6xNYkwHgYo\n+emFxACf1bI1TPPP3PhxzWWzVarA2YatOWNgF+zK9PH+P41N2bMSx0cbAbMj\n44qbXmy88l/3q9HxFLT8jwY6cZPiMCmVOjtkkicpzJzRMg/DZulCfFpANBdv\nQEFNzAphE7+XOobAhymBgCMXtQn5o37Nz++9oma/uBcUJbo1vvbT6NWrfmFL\nG3sznG8heJ/2Tr4ffhJeAX65u/lLLmqh+PIF/MA1kUCwPe+kTejqE9os94w1\nPTMY3nXYKWDmljZlGUjVPSLQeTnnkDjgaMH9Zs+Pl4p7HUNbBamJOdQO4hBg\neuXBcUdEYcclBvoN8j1/Nzg9Pzv2SWD1pj/tQVHuL8J4JCcC8mkyv6hOFA9b\nt55jnsSQW8hj1OfEXg1SJ8KsyirCnVvXrRMZP2kFIJjWEDzmEjccxKpJl9p7\nNcx4Yqu1jJHsRKMJc5xq2no67Dr4bG3meIX9WUxQ2aGivU6civnTOir8Karo\nn2eL7R/KqVZ0VtcLvm+QFPMsV7XKbzm3zx6ZEF3+p8ih+YqwaAdWYkGEO8Vf\na9JbxcAYNLjzppyCK3oH9a+Mhzo+hlvFTJTXc3O9C5dnXtw7zJdZCXBfgYWG\nRT8j\r\n=CwMD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBIeLoqH+4gRZxHW052KHRJ6xDuKdL9LS4jYL/A+ofFHAiAJqXnAt6HOUImslKxlIo3Qx3Icn4D5KMEheAJMSGj2nA=="}]},"maintainers":[{"name":"codetheweb","email":"codetheweb@icloud.com"}],"_npmUser":{"name":"codetheweb","email":"codetheweb@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stepfunctions-localhost_0.1.1_1560787324562_0.6046536680083012"},"_hasShrinkwrap":false},"0.2.0":{"name":"stepfunctions-localhost","version":"0.2.0","description":"A wrapper for AWS's [Step Functions Local](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).","main":"index.js","scripts":{"test":"xo"},"author":{"name":"Max Isom","email":"codetheweb@icloud.com","url":"https://maxisom.me"},"license":"MIT","xo":{"space":true},"devDependencies":{"xo":"^0.24.0"},"dependencies":{"del":"^4.1.1","fs-extra":"^8.0.1","ora":"^3.4.0","tar":"^4.4.10","zlib":"^1.0.5"},"keywords":["🛠","aws","step functions","state machines","step","function","state","machine","serverless","local","offline"],"bugs":{"url":"https://github.com/codetheweb/stepfunctions-localhost/issues"},"homepage":"https://github.com/codetheweb/stepfunctions-localhost#readme","repository":{"type":"git","url":"git+https://github.com/codetheweb/stepfunctions-localhost.git"},"gitHead":"8e3981d2618e6860ab64a2ecc594c36c01a7b94b","_id":"stepfunctions-localhost@0.2.0","_nodeVersion":"11.10.0","_npmVersion":"6.8.0","dist":{"integrity":"sha512-f/cQxH4uT/l08AHfGv5xwRnMl7yuemcBHIxmbpvaG8uqFsoN2ykVBPiofwy2s+oPBEazzqG8vqb5xNvweZyp/g==","shasum":"512b8982a68bd7a194fce9badbf9a04865d835b2","tarball":"https://registry.npmjs.org/stepfunctions-localhost/-/stepfunctions-localhost-0.2.0.tgz","fileCount":7,"unpackedSize":11288,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdB8ORCRA9TVsSAnZWagAAStsP/ivEF4NqnCvF3UHVxpJm\n672bWXo6K68NBs4gEes/LFbz96xALpiXFEPV7/zfAbrG0K9v3SP0yfl+lYv7\nLu5N8GY8wAiCEMz2ug7VxSmAr5PKgb7o9FylU4pXw6eEEalUh1/jtXUI+slD\nu8V+N8KJKKzyZ17oIg8wvzBv2fzMKpQtgtHrF9huT0lzNR67whCM+J2Hya3e\nV3b9UzXn48hL/fXObc+07KREl1d9k/y7Hu8AAWJcYQrO58Y1fCpaLKcflD3w\nCOVrMRn6ynbtuoQpijwfEyNfBu7zcVfYOO0WZ1SrcWoya23E2O308vMEtnMB\nyH+CbVHyTn1yXR12SEwD3hCJ5GMDF9mqmP8q6UhU+F/fm+rKcNUdMPlT7Y2u\nKDOaIvDDYe7oZ9I1EPqIha7w+YiC7qMTRTKjQg24/pAOXmY92QpOb0KbqPwv\nohGUMLPGoX8BkM3WimykaxvyLPVoIHMLHury8Ij4qLmvY8XRb28JvOi94iM5\nBXD0Cy9O1bnuZes65YBlhdL9N4ruj0/ftnNyVEveIcGThunEzAKLKdu1t34x\n3OFRsLCNBIfQ15vEFFF6SPNaiXIS40yo01gYwPCU282tuNT2Y4ZtEYyO8C7F\nHQgth8CelJmJ7ztNgYfS7zRMFP8hInkyzppfHJRCgb2fIIHQX98oXkT6i9hk\nDQS4\r\n=GDEJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFIAfl6Lk08fRM9ZjRa4kRO7eBG+fhPTwKnpC0Xwx5a3AiAZboZghx5g7DZAWXlCdmowp37NQVVciXeMpkABIJ8fsw=="}]},"maintainers":[{"name":"codetheweb","email":"codetheweb@icloud.com"}],"_npmUser":{"name":"codetheweb","email":"codetheweb@icloud.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/stepfunctions-localhost_0.2.0_1560789904537_0.3172634517724242"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-15T00:35:38.172Z","0.1.0":"2019-06-15T00:35:38.292Z","modified":"2022-05-18T17:47:50.462Z","0.1.1":"2019-06-17T16:02:04.669Z","0.2.0":"2019-06-17T16:45:04.663Z"},"maintainers":[{"name":"codetheweb","email":"codetheweb@icloud.com"}],"description":"A wrapper for AWS's [Step Functions Local](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).","homepage":"https://github.com/codetheweb/stepfunctions-localhost#readme","keywords":["🛠","aws","step functions","state machines","step","function","state","machine","serverless","local","offline"],"repository":{"type":"git","url":"git+https://github.com/codetheweb/stepfunctions-localhost.git"},"author":{"name":"Max Isom","email":"codetheweb@icloud.com","url":"https://maxisom.me"},"bugs":{"url":"https://github.com/codetheweb/stepfunctions-localhost/issues"},"license":"MIT","readme":"# 🛠 stepfunctions-localhost\n\nA wrapper for AWS's [Step Functions Local](https://docs.aws.amazon.com/step-functions/latest/dg/welcome.html).\n\nHeavily inspired by [dynamodb-localhost](https://www.npmjs.com/package/dynamodb-localhost).\n\n## Requirements\n\n- Java Runtime Engine (JRE) version 6.x or newer\n\n## Install\n\n`npm install stepfunctions-localhost`\n\n## Usage\n\n```javascript\nconst StepFunctionsLocal = require('stepfunctions-localhost');\n\nconst stepfunctionsLocal = new StepFunctionsLocal();\n\n(async () => {\n  await stepfunctionsLocal.install();\n\n  stepfunctionsLocal.start({}).on('data', data => console.log(data.toString()));\n\n  setTimeout(() => {\n    stepfunctionsLocal.stop();\n\n    stepfunctionsLocal.remove();\n  }, 5000);\n})();\n```\n\nThis will download the files required to run step functions, start the step function server, wait 5 seconds, then stop the server and clean up after itself.\n\n## API\n\n### `new StepFunctionsLocal(options)`\n\nCreates a new instance.  `options` defaults to `{quiet = false, path = './.step-functions-local'}`.\n\n### `.install()`\n\nDownloads files required to run step functions.  Path defaults to `./.step-functions-local`.\n\nReturns Promise.\n\n### `.start(options)`\n\nStarts the local server.  Options match those of the actual step function server:\n\n```bash\n-account,--aws-account <Account>                               the AWS account used to create state machines, activities and executions,\n                                                               this is also the account of your Lambda and other resources.\n                                                               By Default, it is set to [123456789012], this is NOT a real account id.\n-batchEndpoint,--batch-endpoint <Batch Endpoint>               the local endpoint of Batch.\n                                                               e.g. http://localhost:4574\n-dynamoDBEndpoint,--dynamodb-endpoint <DynamoDB Endpoint>      the local endpoint of DynamoDB.\n                                                               e.g. http://localhost:4574\n-ecsEndpoint,--ecs-endpoint <ECS Endpoint>                     the local endpoint of ECS.\n                                                               e.g. http://localhost:4574\n-glueEndpoint,--glue-endpoint <Glue Endpoint>                  the local endpoint of Glue.\n                                                               e.g. http://localhost:4574\n-h,--help                                                      Show this help information.\n-lambdaEndpoint,--lambda-endpoint <Lambda Endpoint>            the local endpoint of Lambda.\n                                                               e.g. http://localhost:4574\n-region,--aws-region <Region>                                  the region where the state machines, activities and executions will be created,\n                                                               this is also the region of other AWS resources referred in the state machine.\n                                                               By Default, it is set to [us-east-1].\n-sageMakerEndpoint,--sagemaker-endpoint <SageMaker Endpoint>   the local endpoint of SageMaker.\n                                                               e.g. http://localhost:4574\n-snsEndpoint,--sns-endpoint <SNS Endpoint>                     the local endpoint of SNS.\n                                                               e.g. http://localhost:4574\n-sqsEndpoint,--sqs-endpoint <SQS Endpoint>                     the local endpoint of SQS.\n                                                               e.g. http://localhost:4574\n-v,--version                                                   Show the version and build of Step Functions Local.\n-waitTimeScale,--wait-time-scale <Wait Time Scale>             the scale of the wait time in the Wait state\n                                                               e.g. 0.5 means cut the original wait time to half\n                                                               e.g. 0 means no wait time\n                                                               e.g. 2 means double the original wait time\n```\n\nFor example, to set the account ID, the options object would be `{account: 'fake-account-id'}`.\n\nReturns the stdout stream of the spawned server process.\n\n### `.stop()`\n\nStops the currently running instance.\n\n### `.remove()`\n\nRemoves local files that have been downloaded.\n","readmeFilename":"README.md"}