{
  "_id": "iterable-lookahead",
  "maintainers": [
    {
      "name": "parroit",
      "email": "andrea@parro.it"
    }
  ],
  "keywords": [
    "iterable",
    "generator",
    "ahead",
    "behind",
    "functional",
    "look-behind",
    "look-ahead",
    "lookbehind",
    "lookahead"
  ],
  "dist-tags": {
    "latest": "2.0.0"
  },
  "author": {
    "name": "Andrea Parodi",
    "email": "andrea@parro.it"
  },
  "_rev": "7-39824c4215458a872a2946f4a079227b",
  "description": "Iterable wrapper that add methods to read ahead or behind current item.",
  "readme": "# iterable-lookahead\n\n[![Greenkeeper badge](https://badges.greenkeeper.io/parro-it/iterable-lookahead.svg)](https://greenkeeper.io/)\n[![Travis Build Status](https://img.shields.io/travis/parro-it/iterable-lookahead.svg)](http://travis-ci.org/parro-it/iterable-lookahead)\n[![Coveralls](https://img.shields.io/coveralls/parro-it/iterable-lookahead.svg?maxAge=2592000)](https://coveralls.io/github/parro-it/iterable-lookahead)\n[![NPM module](https://img.shields.io/npm/v/iterable-lookahead.svg)](https://npmjs.org/package/iterable-lookahead)\n[![NPM downloads](https://img.shields.io/npm/dt/iterable-lookahead.svg)](https://npmjs.org/package/iterable-lookahead)\n\n> Iterable wrapper that add methods to read ahead or behind current item.\n\n\n\n# Installation\n\n```bash\nnpm install --save iterable-lookahead\n```\n\n## Usage\n\n```js\n\tconst lookahead = require('iterable-lookahead');\n\tconst iterable = lookahead([1, 2, 3, 4]);\n\n\tfor (const item of iterable) {\n\t\tconsole.log({\n\t\t\titem,\n\t\t\tahead: iterable.ahead(1),\n\t\t\tbehind: iterable.behind(1)\n\t\t});\n\t}\n\n```\n\nor otherwise, using array spread syntax:\n\n```js\n\tconst lookahead = require('iterable-lookahead');\n\n\tfor (const [item, look] of lookahead.spread([1, 2, 3, 4])) {\n\t\tconsole.log({\n\t\t\titem,\n\t\t\tahead: look.ahead(1),\n\t\t\tbehind: look.behind(1)\n\t\t});\n\t}\n\n```\n\n# License\n\nThe MIT License (MIT)\n\nCopyright (c) 2016 Andrea Parodi\n",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/parro-it/iterable-lookahead.git"
  },
  "users": {},
  "bugs": {
    "url": "https://github.com/parro-it/iterable-lookahead/issues"
  },
  "license": "MIT",
  "versions": {
    "1.0.0": {
      "name": "iterable-lookahead",
      "version": "1.0.0",
      "description": "Iterable wrapper that add methods to read ahead or behind current item.",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/parro-it/iterable-lookahead.git"
      },
      "license": "MIT",
      "author": {
        "name": "Andrea Parodi",
        "email": "andrea@parro.it"
      },
      "scripts": {
        "test": "ava --no-babel && xo",
        "cover-test": "nyc ava --no-babel"
      },
      "keywords": [
        "iterable",
        "generator",
        "ahead",
        "behind",
        "functional",
        "look-behind",
        "look-ahead",
        "lookbehind",
        "lookahead"
      ],
      "engines": {
        "node": ">=4"
      },
      "devDependencies": {
        "ava": "^0.15.2",
        "coveralls": "^2.11.11",
        "is-iterable": "^1.1.0",
        "nyc": "^7.0.0",
        "xo": "^0.16.0"
      },
      "files": [
        "index.js"
      ],
      "gitHead": "366b3eddfd04e5e68f4ff01cb06bcb10a0e12825",
      "bugs": {
        "url": "https://github.com/parro-it/iterable-lookahead/issues"
      },
      "homepage": "https://github.com/parro-it/iterable-lookahead#readme",
      "_id": "iterable-lookahead@1.0.0",
      "_shasum": "896dfcb78680bdb50036e97edb034c8b68a9737f",
      "_from": ".",
      "_npmVersion": "3.10.3",
      "_nodeVersion": "6.5.0",
      "_npmUser": {
        "name": "parroit",
        "email": "andrea@parro.it"
      },
      "dist": {
        "shasum": "896dfcb78680bdb50036e97edb034c8b68a9737f",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iterable-lookahead/-/iterable-lookahead-1.0.0.tgz",
        "integrity": "sha512-hJnEP2Xk4+44DDwJqUQGdXal5VbyeWLaPyDl2AQc242Zr7iqz4DgpQOrEzglWVMGHMDCkguLHEKxd1+rOsmgSQ==",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIAupymflYdnmEI3eyS766L7gTA7u6ixtydaVR6jJ6WaCAiEApQkBL/AplV3Jowl4GNq8l5NkxC0btrhR169nbEhughQ="
          }
        ]
      },
      "maintainers": [
        {
          "name": "parroit",
          "email": "andrea@parro.it"
        }
      ],
      "_npmOperationalInternal": {
        "host": "packages-16-east.internal.npmjs.com",
        "tmp": "tmp/iterable-lookahead-1.0.0.tgz_1473805214630_0.3428094720002264"
      },
      "directories": {}
    },
    "2.0.0": {
      "name": "iterable-lookahead",
      "version": "2.0.0",
      "description": "Iterable wrapper that add methods to read ahead or behind current item.",
      "repository": {
        "type": "git",
        "url": "git+https://github.com/parro-it/iterable-lookahead.git"
      },
      "license": "MIT",
      "author": {
        "name": "Andrea Parodi",
        "email": "andrea@parro.it"
      },
      "scripts": {
        "test": "ava && xo",
        "cover-test": "nyc ava && xo"
      },
      "keywords": [
        "iterable",
        "generator",
        "ahead",
        "behind",
        "functional",
        "look-behind",
        "look-ahead",
        "lookbehind",
        "lookahead"
      ],
      "engines": {
        "node": ">=6"
      },
      "devDependencies": {
        "ava": "^0.20.0",
        "coveralls": "^2.11.11",
        "is-iterable": "^1.1.0",
        "nyc": "^11.0.3",
        "xo": "^0.18.1"
      },
      "files": [
        "index.js"
      ],
      "gitHead": "cca168bca3cd2a8fefe3f996e3d02783679d6985",
      "bugs": {
        "url": "https://github.com/parro-it/iterable-lookahead/issues"
      },
      "homepage": "https://github.com/parro-it/iterable-lookahead#readme",
      "_id": "iterable-lookahead@2.0.0",
      "_npmVersion": "5.0.4",
      "_nodeVersion": "8.1.2",
      "_npmUser": {
        "name": "parroit",
        "email": "andrea@parro.it"
      },
      "dist": {
        "integrity": "sha512-2+jNWlWxNfs4s3Ps01E9KU32K9OQavrW8xLCONsrPHCB/q4hmnseoDVREKE5HSCoVUnw9+RQJgvGLthtOye5Mg==",
        "shasum": "bfba16974f28f4d08175c6b677f1e37d7451fbd1",
        "tarball": "https://archive.ito.gov.ir/npm/_packages/iterable-lookahead/-/iterable-lookahead-2.0.0.tgz",
        "signatures": [
          {
            "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
            "sig": "MEUCIDKdDVHf5MA5GD7THdw6OgIc1vASsrU+7kBggGCKXTuxAiEAxUZuAAry+E4JLQKBmPksY2/i/iSAWiZxI1iX2ErMl74="
          }
        ]
      },
      "maintainers": [
        {
          "name": "parroit",
          "email": "andrea@parro.it"
        }
      ],
      "_npmOperationalInternal": {
        "host": "s3://npm-registry-packages",
        "tmp": "tmp/iterable-lookahead-2.0.0.tgz_1498679707940_0.9051304589956999"
      },
      "directories": {}
    }
  },
  "name": "iterable-lookahead",
  "time": {
    "modified": "2026-05-21T00:48:32.190Z",
    "created": "2016-09-13T22:20:15.270Z",
    "1.0.0": "2016-09-13T22:20:15.270Z",
    "2.0.0": "2017-06-28T19:55:08.850Z"
  },
  "readmeFilename": "readme.md",
  "homepage": "https://github.com/parro-it/iterable-lookahead#readme"
}