{ "_args": [ [ { "raw": "instapromise@^2.0.7", "scope": null, "escapedName": "instapromise", "name": "instapromise", "rawSpec": "^2.0.7", "spec": ">=2.0.7 <3.0.0", "type": "range" }, "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/@expo/schemer" ] ], "_from": "instapromise@>=2.0.7 <3.0.0", "_id": "instapromise@2.0.7", "_inCache": true, "_location": "/instapromise", "_nodeVersion": "6.7.0", "_npmOperationalInternal": { "host": "packages-18-east.internal.npmjs.com", "tmp": "tmp/instapromise-2.0.7.tgz_1476835835854_0.015201558824628592" }, "_npmUser": { "name": "ide", "email": "ide+npm@jameside.com" }, "_npmVersion": "3.10.3", "_phantomChildren": {}, "_requested": { "raw": "instapromise@^2.0.7", "scope": null, "escapedName": "instapromise", "name": "instapromise", "rawSpec": "^2.0.7", "spec": ">=2.0.7 <3.0.0", "type": "range" }, "_requiredBy": [ "/@expo/schemer" ], "_resolved": "https://registry.npmjs.org/instapromise/-/instapromise-2.0.7.tgz", "_shasum": "85e66b31021194da11214c865127ef04ec30167a", "_shrinkwrap": null, "_spec": "instapromise@^2.0.7", "_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/@expo/schemer", "author": { "name": "Exponent" }, "bugs": { "url": "https://github.com/exponentjs/instapromise/issues" }, "dependencies": {}, "description": "Promisify Node-style asynchronous functions by putting a .promise after them (or after the object for methods)", "devDependencies": { "babel-cli": "^6.16.0", "babel-preset-es2015": "^6.16.0", "jest": "^16.0.0" }, "directories": {}, "dist": { "shasum": "85e66b31021194da11214c865127ef04ec30167a", "tarball": "https://registry.npmjs.org/instapromise/-/instapromise-2.0.7.tgz" }, "files": [ "build" ], "gitHead": "973b7bc445f76d70696cce75e42cf938639cba99", "homepage": "https://github.com/exponentjs/instapromise", "keywords": [ "promisify", "promises", "monkeypatch", "lazy" ], "license": "MIT", "main": "build/instapromise.js", "maintainers": [ { "name": "ccheever", "email": "ccheever@gmail.com" }, { "name": "exponent", "email": "exponent.team@gmail.com" }, { "name": "ide", "email": "ide+npm@jameside.com" } ], "name": "instapromise", "optionalDependencies": {}, "readme": "# Instapromise [![Circle CI](https://circleci.com/gh/exponentjs/instapromise.svg?style=svg)](https://circleci.com/gh/exponentjs/instapromise)\nPromisify Node-style asynchronous functions by putting a `.promise` after them (or after the object for methods).\n\n[![npm package](https://nodei.co/npm/instapromise.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/instapromise/)\n\nIf you use this library then if you put `.promise` after a Node-style\nasynchronous function, it will turn it into a function that returns a promise\ninstead of taking a callback.\n\n```js\nimport 'instapromise';\nimport fs from 'fs';\n\nlet p = fs.readFile.promise('/tmp/hello', 'utf8');\np.then(console.log);\n```\n\nThe original function is available as a property on the promise-generating function (`.___instapromiseOriginalFunction___`).\n\nIf you want to promisify methods, use `.promise` after the object and before the method name.\n\n```js\nimport 'instapromise';\nimport fs from 'fs';\n\nlet p = fs.promise.readFile('/tmp/hello', 'utf8');\np.then(console.log);\n```\n\n## Changelog\n\n### 2.0.7\nNon-enumerable properties like class methods are now promisified.\nFunctions with names that would cause syntax errors (like `default`) are supported.\n\n### 2.0.3\n\nThe `___instapromiseOriginalFunction___` property is now non-enumerable so it doesn't show up when serializing functions whose `promise` property has been accessed before.\n\n### 2.0.0\nThe `Promise` polyfill is no longer provided. 1.x provided a polyfill for environments without a native `Promise` implementation, but in general, most environments you'll use now provide `Promise`.\n\n## Credits\n\nThis code is based on the proxying code used in [fibrous](https://github.com/goodeggs/fibrous/blob/master/src/fibrous.coffee).\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/exponentjs/instapromise.git" }, "scripts": { "build": "babel -d build src", "test": "jest", "watch": "babel --watch -d build src" }, "version": "2.0.7" }