{
  "_args": [
    [
      {
        "raw": "onetime@^1.0.0",
        "scope": null,
        "escapedName": "onetime",
        "name": "onetime",
        "rawSpec": "^1.0.0",
        "spec": ">=1.0.0 <2.0.0",
        "type": "range"
      },
      "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/restore-cursor"
    ]
  ],
  "_from": "onetime@>=1.0.0 <2.0.0",
  "_id": "onetime@1.1.0",
  "_inCache": true,
  "_location": "/npm-check-updates/onetime",
  "_nodeVersion": "4.2.1",
  "_npmUser": {
    "name": "sindresorhus",
    "email": "sindresorhus@gmail.com"
  },
  "_npmVersion": "2.14.7",
  "_phantomChildren": {},
  "_requested": {
    "raw": "onetime@^1.0.0",
    "scope": null,
    "escapedName": "onetime",
    "name": "onetime",
    "rawSpec": "^1.0.0",
    "spec": ">=1.0.0 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/npm-check-updates/restore-cursor"
  ],
  "_resolved": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz",
  "_shasum": "a1f7838f8314c516f05ecefcbc4ccfe04b4ed789",
  "_shrinkwrap": null,
  "_spec": "onetime@^1.0.0",
  "_where": "/build/npm-check-updates/pkg/npm-check-updates/usr/lib/node_modules/npm-check-updates/node_modules/restore-cursor",
  "author": {
    "name": "Sindre Sorhus",
    "email": "sindresorhus@gmail.com",
    "url": "sindresorhus.com"
  },
  "bugs": {
    "url": "https://github.com/sindresorhus/onetime/issues"
  },
  "dependencies": {},
  "description": "Only call a function once",
  "devDependencies": {
    "ava": "*",
    "xo": "*"
  },
  "directories": {},
  "dist": {
    "shasum": "a1f7838f8314c516f05ecefcbc4ccfe04b4ed789",
    "tarball": "https://registry.npmjs.org/onetime/-/onetime-1.1.0.tgz"
  },
  "engines": {
    "node": ">=0.10.0"
  },
  "files": [
    "index.js"
  ],
  "gitHead": "6fae2fb77b95b49719d1c270d8ba07d9515bdfe8",
  "homepage": "https://github.com/sindresorhus/onetime#readme",
  "keywords": [
    "once",
    "one",
    "single",
    "call",
    "function",
    "prevent"
  ],
  "license": "MIT",
  "maintainers": [
    {
      "name": "sindresorhus",
      "email": "sindresorhus@gmail.com"
    }
  ],
  "name": "onetime",
  "optionalDependencies": {},
  "readme": "# onetime [![Build Status](https://travis-ci.org/sindresorhus/onetime.svg?branch=master)](https://travis-ci.org/sindresorhus/onetime)\n\n> Only call a function once\n\nWhen called multiple times it will return the return value from the first call.\n\n*Unlike the module [once](https://github.com/isaacs/once), this one isn't naughty extending `Function.prototype`.*\n\n\n## Install\n\n```\n$ npm install --save onetime\n```\n\n\n## Usage\n\n```js\nlet i = 0;\n\nconst foo = onetime(() => i++);\n\nfoo(); //=> 0\nfoo(); //=> 0\nfoo(); //=> 0\n```\n\n\n## API\n\n### onetime(function, [shouldThrow])\n\n#### function\n\nType: `function`\n\nFunction that should only be called once.\n\n#### shouldThrow\n\nType: `boolean`  \nDefault: `false`\n\n![](screenshot-shouldthrow.png)\n\nSet to `true` if you want it to fail with a nice and descriptive error when called more than once.\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n",
  "readmeFilename": "readme.md",
  "repository": {
    "type": "git",
    "url": "git+https://github.com/sindresorhus/onetime.git"
  },
  "scripts": {
    "test": "xo && ava"
  },
  "version": "1.1.0"
}
