{
	"name": "p-lazy",
	"versions": {
		"1.0.0": {
			"name": "p-lazy",
			"version": "1.0.0",
			"description": "Create a lazy promise that defers execution until `.then()` or `.catch()` is called",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/sindresorhus/p-lazy.git"
			},
			"author": {
				"name": "Sindre Sorhus",
				"email": "sindresorhus@gmail.com",
				"url": "sindresorhus.com"
			},
			"engines": {
				"node": ">=4"
			},
			"scripts": {
				"test": "xo && ava"
			},
			"files": [
				"index.js"
			],
			"keywords": [
				"promise",
				"lazy",
				"defer",
				"deferred",
				"then",
				"catch",
				"fulfilled",
				"async",
				"function",
				"await",
				"promises",
				"bluebird"
			],
			"devDependencies": {
				"ava": "*",
				"delay": "^1.3.1",
				"xo": "*"
			},
			"xo": {
				"esnext": true
			},
			"gitHead": "9d240009f7ecc2217889304e7cfe4f21d985e442",
			"bugs": {
				"url": "https://github.com/sindresorhus/p-lazy/issues"
			},
			"homepage": "https://github.com/sindresorhus/p-lazy#readme",
			"_id": "p-lazy@1.0.0",
			"_shasum": "ec53c802f2ee3ac28f166cc82d0b2b02de27a835",
			"_from": ".",
			"_npmVersion": "2.15.9",
			"_nodeVersion": "4.6.1",
			"_npmUser": {
				"name": "sindresorhus",
				"email": "sindresorhus@gmail.com"
			},
			"dist": {
				"shasum": "ec53c802f2ee3ac28f166cc82d0b2b02de27a835",
				"tarball": "https://registry.npmjs.org/p-lazy/-/p-lazy-1.0.0.tgz"
			},
			"maintainers": [
				{
					"name": "sindresorhus",
					"email": "sindresorhus@gmail.com"
				}
			],
			"_npmOperationalInternal": {
				"host": "packages-12-west.internal.npmjs.com",
				"tmp": "tmp/p-lazy-1.0.0.tgz_1478510599877_0.9282662672922015"
			},
			"directories": {},
			"contributors": []
		},
		"2.0.0": {
			"name": "p-lazy",
			"version": "2.0.0",
			"description": "Create a lazy promise that defers execution until it's awaited or when `.then()` or `.catch()` is called",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/sindresorhus/p-lazy.git"
			},
			"author": {
				"name": "Sindre Sorhus",
				"email": "sindresorhus@gmail.com",
				"url": "sindresorhus.com"
			},
			"engines": {
				"node": ">=6"
			},
			"scripts": {
				"test": "xo && ava && tsd-check"
			},
			"keywords": [
				"promise",
				"lazy",
				"defer",
				"deferred",
				"then",
				"catch",
				"fulfilled",
				"async",
				"function",
				"await",
				"promises",
				"bluebird"
			],
			"devDependencies": {
				"ava": "^1.3.1",
				"delay": "^4.1.0",
				"tsd-check": "^0.4.0",
				"xo": "^0.24.0"
			},
			"gitHead": "71d69db945e112a23ceaf7f9482ed307efd02c7e",
			"bugs": {
				"url": "https://github.com/sindresorhus/p-lazy/issues"
			},
			"homepage": "https://github.com/sindresorhus/p-lazy#readme",
			"_id": "p-lazy@2.0.0",
			"_nodeVersion": "8.15.0",
			"_npmVersion": "6.9.0",
			"_npmUser": {
				"name": "sindresorhus",
				"email": "sindresorhus@gmail.com"
			},
			"dist": {
				"integrity": "sha512-hd7eattrle9bvtdXaNZQBut1vVqouZaQfwPfWEAwdMZUlblKiyDNzQWUWwcSXpl/v3IqTmYjbIOLAaUUMRUgaQ==",
				"shasum": "6501a84a49ae07f352deabd84ab447867b06afa2",
				"tarball": "https://registry.npmjs.org/p-lazy/-/p-lazy-2.0.0.tgz",
				"fileCount": 5,
				"unpackedSize": 4294,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcjUIDCRA9TVsSAnZWagAAkk4P/Axu7JIrJhBYFOoQ2d8M\nfI8eZKvNPAAkp7f0CUF69SDs+Jnx0LSUQUdf5mJlruRHA2/XBPyXotN6XxwR\nZoRZem553gtoq2aCCcsfN5mmDgDyY1bPZ6Cgnmi2/Q0of1RsQ+DankdkO3IH\nqUaIgK55wI5ARkXKqQsOlefZe+WOfjatza3/BdHA1rj/RbckIdtXy/9qeTCx\nlXqqPD+KM4H4WXoDJ1s8U1YZBiAjEoFXwMEsnLvIG1IkycNejx+xMUO4PxV/\nzECp3aVWgw4PL234a4VLXfZvOCbNMQbB3IHgAg+aY1lI4Khg048APhpvoSMU\nmMijxJ56eLLZQF+cexd5+enUXfG0HhaDrOXk8gI5mpZHdfUdeLEIk8y+uEDM\nzy5PjohHb6iK9k1Vo9eOKHKVAsV1nP9xclfzJmjZxzOibY8+9SwSX3n754PC\nlx3xZRXJjagIG8JDbJEKi1qKXT8s2W5qKeXvZiDy7gqWHprLJDCOXC3VaUhQ\n3VMVtPgmR4/Ha99m1m4pVKxJXWY0CGYMTICfakv2rWEEYLFYfO7BiiUPAB5y\n+Kdu+7sB03gAPdY3/tVasgnk/cxl3RkBzfT6da6B0qF5wc2zsrDIdGZK+ye3\ne3OJK3CJD4iCtjviyf21wNZG1xeqw5q9sJS2I5OsyW4ZwQjpVwwVaeKDKxn7\nwD1L\r\n=2TlY\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "sindresorhus",
					"email": "sindresorhus@gmail.com"
				}
			],
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/p-lazy_2.0.0_1552761347094_0.4100894551311418"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		},
		"3.0.0": {
			"name": "p-lazy",
			"version": "3.0.0",
			"description": "Create a lazy promise that defers execution until it's awaited or when `.then()` or `.catch()` is called",
			"license": "MIT",
			"repository": {
				"type": "git",
				"url": "git+https://github.com/sindresorhus/p-lazy.git"
			},
			"author": {
				"name": "Sindre Sorhus",
				"email": "sindresorhus@gmail.com",
				"url": "sindresorhus.com"
			},
			"engines": {
				"node": ">=8"
			},
			"scripts": {
				"test": "xo && ava && tsd"
			},
			"keywords": [
				"promise",
				"lazy",
				"defer",
				"deferred",
				"then",
				"catch",
				"fulfilled",
				"async",
				"function",
				"await",
				"promises",
				"bluebird"
			],
			"devDependencies": {
				"ava": "^1.4.1",
				"delay": "^4.1.0",
				"tsd": "^0.7.2",
				"xo": "^0.24.0"
			},
			"gitHead": "2d38e9173d41021c7088ee3b60b0230143c60f78",
			"bugs": {
				"url": "https://github.com/sindresorhus/p-lazy/issues"
			},
			"homepage": "https://github.com/sindresorhus/p-lazy#readme",
			"_id": "p-lazy@3.0.0",
			"_nodeVersion": "8.15.0",
			"_npmVersion": "6.9.0",
			"_npmUser": {
				"name": "sindresorhus",
				"email": "sindresorhus@gmail.com"
			},
			"dist": {
				"integrity": "sha512-LwLtFifyLFRTMQUvA3m8iN8Ll0TesCD4KeDg+nJTEuZ38HWz8pi9QSfxt5I2I7nzk8G0ODVTg98GoSjNthlcKQ==",
				"shasum": "3d8b2aceea3e49f8e5883947838e9370f15c9e28",
				"tarball": "https://registry.npmjs.org/p-lazy/-/p-lazy-3.0.0.tgz",
				"fileCount": 5,
				"unpackedSize": 4594,
				"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcpES4CRA9TVsSAnZWagAAzP4QAIdK73PhT1vLkohAyuaM\nV7YsiQIX82+wB44FqZE5ifX/xHzPlCnnax5xvB/7T2FnEnLOStbpvEZ8e+pl\n2vXwFhlTIHH5FYxrNkM9jXSqnv+Z7TDYgwUACWh64zUQKLmJbk5jqatQePao\nM+H9FlWas3diJtrGWx1DZlPuH3iFz1peWhsqBEPK3WsSeWKT80t0DMtePS5L\neSvTnnXUS4aOpsMBeQvGbktPjbAn1OGfPk14aE81QzbjNsUqdY/qpr79+Rvz\nYeSd6sYVzPjKCTMBN8HEumqAF6AnlnqgMATqE1je5uiQPK8bs5BciXKWfuOa\nuMXWx6KjcfLR45piCOuUC8u7iJCPn/9yvUe6bxvaXYWkZmDAr2RKFwlx8Cvw\nyW4ddpZj5MJmvSCV0eIyhH6zSU3Qh8nBY+TsMl+d+L8kiTM3jljjwUaidrce\nb5kOQV8NBflvVCifS4xD5ajz/h+l6o9zA6I32s1PweVp19/4wl8i+WRqGrpB\nG9ldsCBwAJ5ocPnSycvuOKZx6UpoaHgyhG+VCTcgsl2JiBf84EIJ4A0R5hKJ\nmVtX6pwnhPaxWfmfBLtg6xO5Lexx6x1NbhrHkftE3+XNxfIRv7XUrfK87ab2\nOkKhu6SFSshrVg+IHoqRHVVZMSEtvJRMYsaFvAJLTf7SDLC4tkO6B1Oy82xI\nrhxH\r\n=lavA\r\n-----END PGP SIGNATURE-----\r\n"
			},
			"maintainers": [
				{
					"name": "sindresorhus",
					"email": "sindresorhus@gmail.com"
				}
			],
			"directories": {},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/p-lazy_3.0.0_1554269367472_0.6063293656935744"
			},
			"_hasShrinkwrap": false,
			"contributors": []
		}
	},
	"time": {
		"modified": "2019-04-03T05:29:30.342Z",
		"created": "2016-11-07T09:23:20.098Z",
		"1.0.0": "2016-11-07T09:23:20.098Z",
		"2.0.0": "2019-03-16T18:35:47.293Z",
		"3.0.0": "2019-04-03T05:29:27.612Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "3.0.0"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"c7fe564e4aff65dfb58f2b5495b6aaa8\"",
			"fetched": 1593324426855
		}
	},
	"_distfiles": {
		"p-lazy-1.0.0.tgz": {
			"url": "https://registry.npmjs.org/p-lazy/-/p-lazy-1.0.0.tgz",
			"sha": "ec53c802f2ee3ac28f166cc82d0b2b02de27a835",
			"registry": "npmjs"
		},
		"p-lazy-2.0.0.tgz": {
			"url": "https://registry.npmjs.org/p-lazy/-/p-lazy-2.0.0.tgz",
			"sha": "6501a84a49ae07f352deabd84ab447867b06afa2",
			"registry": "npmjs"
		},
		"p-lazy-3.0.0.tgz": {
			"url": "https://registry.npmjs.org/p-lazy/-/p-lazy-3.0.0.tgz",
			"sha": "3d8b2aceea3e49f8e5883947838e9370f15c9e28",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"p-lazy-3.0.0.tgz": {
			"shasum": "3d8b2aceea3e49f8e5883947838e9370f15c9e28"
		}
	},
	"_rev": "2-91c93fd0d1e985a0",
	"_id": "p-lazy",
	"readme": "# p-lazy [![Build Status](https://travis-ci.org/sindresorhus/p-lazy.svg?branch=master)](https://travis-ci.org/sindresorhus/p-lazy)\n\n> Create a lazy promise that defers execution until it's awaited or when `.then()` or `.catch()` is called\n\nUseful if you're doing some heavy operations and would like to only do it when the promise is actually used.\n\n\n## Install\n\n```\n$ npm install p-lazy\n```\n\n\n## Usage\n\n```js\nconst PLazy = require('p-lazy');\n\nconst lazyPromise = new PLazy(resolve => {\n\tsomeHeavyOperation(resolve);\n});\n\n// `someHeavyOperation` is not yet called\n\n(async () => {\n\tawait doSomethingFun;\n\t// `someHeavyOperation` is called\n\tconsole.log(await lazyPromise);\n})();\n```\n\n\n## API\n\n### new PLazy(executor)\n\nSame as the [`Promise` constructor](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise). `PLazy` is a subclass of `Promise`.\n\n### PLazy.from(fn)\n\nCreate a `PLazy` promise from a promise-returning or async function.\n\n\n## Related\n\n- [p-cancelable](https://github.com/sindresorhus/p-cancelable) - Create a promise that can be canceled\n- [p-defer](https://github.com/sindresorhus/p-defer) - Create a deferred promise\n- [lazy-value](https://github.com/sindresorhus/lazy-value) - Create a lazily evaluated value\n- [define-lazy-prop](https://github.com/sindresorhus/define-lazy-prop) - Define a lazily evaluated property on an object\n- [More…](https://github.com/sindresorhus/promise-fun)\n\n\n## License\n\nMIT © [Sindre Sorhus](https://sindresorhus.com)"
}