{
  "_id": "rungen",
  "maintainers": [
    {
      "name": "riad",
      "email": "benguella@gmail.com"
    }
  ],
  "dist-tags": {
    "latest": "0.3.2"
  },
  "author": {
    "name": "Riad Benguella",
    "email": "riad@rizeway.com"
  },
  "_rev": "8-879cacc48827bc23d403cd3df231d579",
  "description": "A generator runtime creator",
  "readme": "RunGen\n======\n\nThis library provides a generic runtime around async flow in javascript.\nThis provides something like [co](https://github.com/tj/co) with the ability to extend its behaviour.\nThis is also largely inspired from [redux-saga](https://github.com/yelouafi/redux-saga). It first started from the idea of decoupling redux-saga from redux.\n\nAPI\n---\n\nIf you're familiar with co, The API here is slitely different. Instead of taking a generator and returning a promise.\nWe can take basically any value (pass in an iterator to have the same behavior as co for generators) and as a result uses callbacks instead of a promise.\n\n```javascript\nimport {create} from 'rungen'\nconst myGenerator*() {\n  yield new Promise()\n}\n\nconst runtime = create()\nconst onSuccess = value => console.log('success : ' + value)\nconst onError = error => console.log('error : ' + error)\nruntime(myGenerator(), onSuccess, onError)\n```\n\nIf you want to have a similar API than `co`, It's as easy as\n\n```javascript\nconst runtime = create()\nconst co = (input, ...args) => new Promise((resolve, reject) =>\n  rungen(input.apply(null, args), resolve, reject)\n)\nco.wrap = input => runtime.bind(this, input)\n\nco(myGenerator, onSuccess, onError)\n```\n\nGeneric ?\n---------\n\nCo allows to you to wrap generators that yields automatically promises, iterators, arrays etc... The idea of genericity here is the ability to perform a custom process on any value depending on your needs.\nWe call these custom processes : controls.\n\nBuilt-in Controls\n-----------------\n\nBy default, you can yield generators, arrays, objects and errors : These are the base controls included in every runtime.\n\n```javascript\nimport {create} from 'rungen'\n\n// Create a runtime\nconst runtime = create()\n\nconst myGenerator = function*(input) {\n  const value = yield input\n  return value\n}\n\n// Run the generator\nruntime(myGenerator, 'any value', value => {\n  console.log(value) // 'any value'\n}, err => {\n  console.log(err)\n})\n```\n\nInstead of running your generator directly, you can also get a simple function from your generator and run it later\n\n```javascript\nconst myFunction = runtime.wrap(myGenerator)\n\n// Run it later\nmyFunction('any value', value => {\n  console.log(value) // 'any value'\n}, err => {\n  console.log(err)\n})\n```\n\n### Sub-generators\n\nNesting generators is allowed using the built-in generator control.\n\n```javascript\nconst increment = function* (input) {\n  yield input\n  return input + 1\n}\n\nruntime(function* () {\n  let output = yield increment(1) // nesting\n  console.log(output) // 2\n  output = yield increment(output)\n  console.log(output) // 3\n})\n```\n\n### Arrays\n\nBy using the `all` helper, yield arrays will make the runtime resolve all the values of the array and get the result as an array.\nHere is an example combining the array and the subgenerator control.\n\n```javascript\nimport {all} from 'rungen'\n\nconst increment = function* (input) {\n  yield input\n  return input + 1\n}\n\nruntime(function* () {\n  let output = yield all([\n    increment(1),\n    4,\n    increment(3)\n  ])\n  console.log(output) // [2, 4, 3]\n})\n```\n\n### Objects\n\nBy using the `all` helper, in the same way as arrays, yielding javascript objets will resolve all the attributes of the objects\nand return an object containing the resolved values.\n\n```javascript\nimport {all} from 'rungen'\n\nconst increment = function* (input) {\n  yield input\n  return input + 1\n}\n\nruntime(function* () {\n  let output = yield all({\n    a: increment(1),\n    b: 4,\n    c: increment(3)\n  })\n  console.log(output) // { a: 2, b: 4, c: 3 }\n})\n```\n\nAsync controls\n--------------\n\nRunGen offers you some async controls that allows you to write basically any async flow in a simple declarative way.\nThese controls are opt-in, this means you can choose to use them or not in your runtime. Here is how to do that.\n\n```javascript\nimport {create, asyncControls} from 'rungen'\n\n// creating a runtime with these controls\nconst runtime = create(asyncControls)\n```\n\n## Promise\n\nAsync controls allows you to yield promises, the runtime resolves the promise and returns the resolved value on success or trigger an error on failure.\n\n```javascript\nimport {delay} from 'rungen'\n\nruntime(function* {\n  yield delay(10) // delay is just a helper that returns a promise resolved after a timeout\n  const output = yield Promise.resolve(1)\n  console.log(output) // 1\n})\n```\n\n## fork/join\n\nWhen dealing with async flows, we need a way to trigger non blocking calls, this can be done easily using the `fork` helper.\n\n```javascript\nimport {fork, delay} from 'rungen'\n\nconst subGenerator = function*(timeout, input) {\n  yield delay(timeout)\n  console.log(input)\n}\n\nruntime(function*() {\n  yield fork(subgenerator(10, 1))\n  yield fork(subgenerator(5, 2))\n})\n\n// this will output 2 than 1\n```\n\nWe can get the result of a forked generator using the `join` helper (join raises an error if the forked task has already finished)\n\n```javascript\nimport {fork, join, delay} from 'rungen'\n\nconst subGenerator = function*(timeout, input) {\n  yield delay(timeout)\n  console.log(input)\n\n  return input+1\n}\n\nruntime(function*() {\n  const task1 = yield fork(subgenerator(10, 1))\n  const task2 = yield fork(subgenerator(5, 2))\n\n  yield delay(6)\n  const output = yield join(task1)\n  console.log(output) // 2\n  yield join(task2) // throws an error because task2 is already terminated\n})\n\n// this will output 2 than 1\n```\n\n## race\n\nRace is a special control that lets you deal with race conditions. For example : timeouts on API calls.\n\n```javascript\nimport {race, delay} from 'rungen'\n\nruntime(function*() {\n  const { result, timeout } = race({\n    result: fetch('/myApi'),\n    timeout: delay(500)\n  })\n\n  if (timeout) {\n    // fetch took more than a half second\n  } else {\n    console.log(result)\n  }\n})\n```\n\nRace can also be used using arrays\n\n```javascript\nimport {race, delay} from 'rungen'\n\nruntime(function*() {\n  const [result, timeout] = race([\n    fetch('/myApi'),\n    delay(500)\n  })\n\n  if (timeout) {\n    // fetch took more than a half second\n  } else {\n    console.log(result)\n  }\n})\n```\n\nWrap controls\n-------------\n\nTo ease testing generators without the need of mocks, we have to avoid triggering any side effect (api calls, timeouts...) in the generator.\nWe use some of those effects in our previous example : calling fork, join or race helpers returs a simple javascript object and doest trigger any side effect.\nThe wrap controls can be used to extend this mecanism to any function call.\n\n## invoke, call and apply\n\nthose are helpers used to tell the runtime to trigger a function call, but the function is not called directory in the generator.\n\n```javascript\nimport {create, invoke, wrapControls, asyncControls} from 'rungen'\n\nruntime = create([...asyncControls, ...wrapControls])\nfunction myApiCall(input) {\n  return fetch('/api/' + input)\n}\n\nconst myGenerator = function* {\n  const result = yield invoke(myApiCall, 'param')\n\n  return result\n}\n\nruntime(myGenerator)\n```\n\ntesting this generator is now straighforward\n\n```javascript\n// the generator to test\nconst gen = myGenerator()\n// Asserts\nexpect(gen.next().value).toEqual(invoke(myApiCall, 'param'))\nexpect(gen.next('result').toEqual({ done: true, value: 'result' })\n```\n\n`apply` and `call` do the same thing as the `invoke` helper with the ability to specify a context (the `this` inside the function call)\n\n```javascript\nimport {call, apply} from 'rungen'\n\nruntime(function* () {\n  let result\n  // these two are equivalent\n  result = yield call(myFunction, context, arg1, arg2)\n  result = yield apply(myFunction, context, [arg1, arg2])\n})\n```\n\n## cps\n\nIn nodejs, libraries often use cps (Continuation-passing style). functions expecting the last argument to be a callback with the following signature : `(err, result) => void`\nRunGen provide a helper that wraps these kind of function calls.\n\n```javascript\nimport {cps} from 'rungen'\n\nfunction cpsApi(timeout, output, callback) {\n  setTimeout(() => callback(false, output), timeout)\n}\n\nruntime(function* () {\n  const result = yield cps(cpsApi, 1000, 2)\n  console.log(result) // displays 2 after one second timeout\n})\n```\n\nCustom Controls\n---------------\n\nA control is an function with the following signature `(value, next) => bool`\n * the function returns a boolean whether or not, it handles the yielded value passed as argument\n * Once the value has been resolved, It should call the `next` callback with the result\n\nLet's say we are going to create a control that allows us to get values from the localStorage\n```javascript\nimport {create} from 'rungen'\n\n// pushing data test\nlocalStorage.set('token', 'myToken')\n\n// Creating the custom control\nmyCustomLocalStorageControl = (value, next) {\n  if (typeof value !== 'object' || value.type !== 'localstorage') return false\n  next(localStorage.get(value.key))\n  return true\n}\n\n// Creating a runtime with this control\nruntime = create([ myCustomLocalStorageControl ])\n\nruntime(function* () {\n  const output = yield { type: 'localstorage', key: 'token' }\n  console.log(output) // outputs : myToken\n})\n```\n\nWhile this should be fine for almost all custom controls use cases, there are some cases when you would need to call some specific callbacks.\nThe full signature of the control is : `(value, next, runtime, yieldNext, yieldError) => bool`\n   * the `next` callback : we call this with a resolved value, when we handled the current value and we have no idea about the result (like promises)\n   * the `runtime` callback : the runtime itself, can be used to perform nesting\n   * the `yieldNext` callback : is a shortcut to avoid infinite loops, it directly yields the resolved value without trying to resolve it as well. This can be usefull to avoid infinte loops, for example in an arrayControl takes an array and yields an array as a result\n   * the `yieldError` callback : called to trigger an error (that can be catched using try/catch in the generator)\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/youknowriad/rungen.git"
  },
  "bugs": {
    "url": "https://github.com/youknowriad/rungen/issues"
  },
  "license": "MIT",
  "versions": {
    "0.1.0": {
      "name": "rungen",
      "version": "0.1.0",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "74e4020be8f29ca9482d29e233f861d78d9f568e",
      "_id": "rungen@0.1.0",
      "_shasum": "84a1dfc5842010f494d5f4e305edf7ff489ce656",
      "_from": ".",
      "_npmVersion": "2.14.12",
      "_nodeVersion": "4.2.4",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "84a1dfc5842010f494d5f4e305edf7ff489ce656",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.1.0.tgz",
        "integrity": "sha512-bltaIs+VWs4+pRBnROn/on+wYIgIFrjrFVlbwfvxsNNCweaguHbU3dOWI0dnnOBRv9cMQbzpjH5iTqwHU01h6Q==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD2BuA9xDeJmRm27cirDDG5wXOjeu1frmF/Rnlb5SU02AIgS56kMpCau9I/96SoexEqrXMPHaC3orcpdu5NEdWxcRw="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ]
    },
    "0.1.1": {
      "name": "rungen",
      "version": "0.1.1",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit",
        "changelog": "conventional-changelog -i CHANGELOG.md -w -r 0 -p angular"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "36b5c61faccfffe64e62cfcf9f716b71aea518c2",
      "_id": "rungen@0.1.1",
      "_shasum": "1e4e3b750ec51aa50f6c367b45aa3714c852fcf4",
      "_from": ".",
      "_npmVersion": "2.14.12",
      "_nodeVersion": "4.2.4",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "1e4e3b750ec51aa50f6c367b45aa3714c852fcf4",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.1.1.tgz",
        "integrity": "sha512-XKNr9wJg/Kb4qPTZXyc2E514hUqYEmU+mW8p/EuuM8Pn+A9ll5e0dEXNa+g8uskqvhhHSPp9VPy4UD9l7hIuYA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIFDzP6XLynPKM+DVjMQbj1C36Njt6O1k589ucurHBGkgAiEAjnL6BAtlgeI289F9KRtVedUbw6Anm2FFZnfPAUMEYLs="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-9-west.internal.npmjs.com",
        "tmp": "tmp/rungen-0.1.1.tgz_1454526328562_0.6228909057099372"
      }
    },
    "0.2.0": {
      "name": "rungen",
      "version": "0.2.0",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit",
        "changelog": "conventional-changelog -i CHANGELOG.md -w -r 0 -p angular"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "1b8df8ab9c9b463ab01bda2002c257282f5bb9dd",
      "_id": "rungen@0.2.0",
      "_shasum": "7d4c09ab8d981f0931047012facf4d03b862147a",
      "_from": ".",
      "_npmVersion": "3.8.6",
      "_nodeVersion": "5.11.1",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "7d4c09ab8d981f0931047012facf4d03b862147a",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.2.0.tgz",
        "integrity": "sha512-2SqE/iQRN/QEJsxuhVYUynUndjpqUMTHrHyQBq9eyd3/d7t8QXHy1jZ56cL7lz1g7rL8FI0a9VE2txCECEwPdw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIF7Rh8xo5lHcJwiJtQJV/U+sMndXjIPqr+I80bn6FIckAiAcQ1Vk92/6ruzagUU3tS4Ibw72i7ix5CFrdBToVVcB9g=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/rungen-0.2.0.tgz_1462700634678_0.8169160014949739"
      }
    },
    "0.3.0": {
      "name": "rungen",
      "version": "0.3.0",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit",
        "changelog": "conventional-changelog -i CHANGELOG.md -w -r 0 -p angular"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "5751bbcc457e67e1be17a2ceee240d6b83816a7c",
      "_id": "rungen@0.3.0",
      "_shasum": "955e0de58e244d5735106b2d6e751b77a8f7f241",
      "_from": ".",
      "_npmVersion": "3.10.3",
      "_nodeVersion": "6.7.0",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "955e0de58e244d5735106b2d6e751b77a8f7f241",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.3.0.tgz",
        "integrity": "sha512-kYWjLhjTL5pRv34Q+Ey/Ic1167uM5GChk5UDnKZXVpbfOr3o8hKxRLnfFVJH2QBVBvqeZitxr2e2DzKJ/lw0eA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIQD6DtDEw52+SwfAcZUGMv1sSEJYIN9X0wbFc6hN9/ymPQIgKMqLNXsWstPc70FZVH6c296l8Lhj9wS0oPhB0dlAPxE="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/rungen-0.3.0.tgz_1476026795597_0.687775090103969"
      }
    },
    "0.3.1": {
      "name": "rungen",
      "version": "0.3.1",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit",
        "changelog": "conventional-changelog -i CHANGELOG.md -w -r 0 -p angular"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "eceac7728700ea63ea18619fa9c61aedcf5e592d",
      "_id": "rungen@0.3.1",
      "_shasum": "ceed14ccd122e70d11973a2239bb808e3407e5b5",
      "_from": ".",
      "_npmVersion": "3.10.3",
      "_nodeVersion": "6.7.0",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "ceed14ccd122e70d11973a2239bb808e3407e5b5",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.3.1.tgz",
        "integrity": "sha512-VpN+DiCVHgV88WaLXFSmdH7EnoMro0liW43GTpyUC5HreBhAzJqjF2AAV1fIRjuvTvVnzd6rRxcDlfoTpI3ORA==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIEEokJoNV7X7LWXyWKR5rI9YJvwmkusN49bfs6NnYL2aAiA9ZqmWSmQUEGqcbSQvLuDJPQU7C8tVotbyLab3dJfScg=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/rungen-0.3.1.tgz_1476560618356_0.6989829088561237"
      }
    },
    "0.3.2": {
      "name": "rungen",
      "version": "0.3.2",
      "description": "A generator runtime creator",
      "main": "dist/index.js",
      "devDependencies": {
        "babel": "^6.3.26",
        "babel-cli": "^6.4.5",
        "babel-eslint": "^5.0.0-beta8",
        "babel-polyfill": "^6.3.14",
        "babel-preset-es2015": "^6.3.13",
        "babel-register": "^6.4.3",
        "conventional-changelog": "^0.5.3",
        "eslint": "^1.10.3",
        "expect": "^1.13.4",
        "mocha": "^2.4.5",
        "rimraf": "^2.5.1"
      },
      "scripts": {
        "lint": "eslint src",
        "compile": "rimraf lib && babel -d dist/ src/",
        "prepublish": "npm run test && npm run compile",
        "unit": "mocha --compilers js:babel-register --recursive test",
        "test": "npm run lint && npm run unit",
        "changelog": "conventional-changelog -i CHANGELOG.md -w -r 0 -p angular"
      },
      "repository": {
        "type": "git",
        "url": "git+https://github.com/youknowriad/rungen.git"
      },
      "author": {
        "name": "Riad Benguella",
        "email": "riad@rizeway.com"
      },
      "license": "MIT",
      "bugs": {
        "url": "https://github.com/youknowriad/rungen/issues"
      },
      "homepage": "https://github.com/youknowriad/rungen#readme",
      "gitHead": "f0c13215fb1d523791f07b185faa126ab05ddeb0",
      "_id": "rungen@0.3.2",
      "_shasum": "400c09ebe914e7b17e0b6ef3263400fc2abc7cb3",
      "_from": ".",
      "_npmVersion": "3.10.8",
      "_nodeVersion": "6.9.0",
      "_npmUser": {
        "name": "riad",
        "email": "benguella@gmail.com"
      },
      "dist": {
        "shasum": "400c09ebe914e7b17e0b6ef3263400fc2abc7cb3",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/rungen/-/rungen-0.3.2.tgz",
        "integrity": "sha512-zWl10xu2D7zoR8zSC2U6bg5bYF6T/Wk7rxwp8IPaJH7f0Ge21G03kNHVgHR7tyVkSSfAOG0Rqf/Cl38JftSmtw==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEQCIHeAe1KpIBePIrAR1dT7BhD7J+flHbRHpDBpsHIMegPJAiBXVuo0bLPPd0pCrMKrNDKIYlV3MlabBNGP+oWl6I7dgw=="
          }
        ]
      },
      "maintainers": [
        {
          "name": "riad",
          "email": "benguella@gmail.com"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-12-west.internal.npmjs.com",
        "tmp": "tmp/rungen-0.3.2.tgz_1478452491894_0.08349190349690616"
      }
    }
  },
  "name": "rungen",
  "time": {
    "modified": "2026-07-19T15:13:04.911Z",
    "created": "2016-01-31T20:45:14.367Z",
    "0.1.0": "2016-01-31T20:45:14.367Z",
    "0.1.1": "2016-02-03T19:05:31.596Z",
    "0.2.0": "2016-05-08T09:43:57.430Z",
    "0.3.0": "2016-10-09T15:26:37.499Z",
    "0.3.1": "2016-10-15T19:43:40.053Z",
    "0.3.2": "2016-11-06T17:14:54.120Z"
  },
  "readmeFilename": "README.md",
  "homepage": "https://github.com/youknowriad/rungen#readme"
}