UNPKG

@inst/vscode-bin-darwin

Version:

BINARY ONLY - VSCode binary deployment for macOS

105 lines (104 loc) 4.47 kB
{ "_args": [ [ { "raw": "extract-opts@https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "scope": null, "escapedName": "extract-opts", "name": "extract-opts", "rawSpec": "https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "spec": "https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "type": "remote" }, "/Users/code/tfs/agent3/_work/2/s" ] ], "_from": "extract-opts@>=2.2.0 <3.0.0", "_id": "extract-opts@2.2.0", "_inCache": true, "_location": "/extract-opts", "_phantomChildren": {}, "_requested": { "raw": "extract-opts@https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "scope": null, "escapedName": "extract-opts", "name": "extract-opts", "rawSpec": "https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "spec": "https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "type": "remote" }, "_requiredBy": [ "/", "/getmac" ], "_resolved": "https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "_shasum": "1fa28eba7352c6db480f885ceb71a46810be6d7d", "_shrinkwrap": null, "_spec": "extract-opts@https://registry.npmjs.org/extract-opts/-/extract-opts-2.2.0.tgz", "_where": "/Users/code/tfs/agent3/_work/2/s", "author": { "name": "Bevry Pty Ltd", "email": "us@bevry.me", "url": "http://bevry.me" }, "bugs": { "url": "https://github.com/bevry/extract-opts/issues" }, "contributors": [ { "name": "Benjamin Lupton", "email": "b@lupton.cc", "url": "https://github.com/balupton" } ], "dependencies": { "typechecker": "~2.0.1" }, "description": "Extract the options and callback from a function's arguments easily", "devDependencies": { "chai": "~1.5.0", "coffee-script": "~1.6.2", "eachr": "~2.0.2", "joe": "~1.2.0", "joe-reporter-console": "~1.2.1" }, "directories": { "lib": "./out/lib" }, "engines": { "node": ">=0.4" }, "homepage": "https://github.com/bevry/extract-opts", "keywords": [ "opts", "options", "cb", "callback", "next", "flow", "args", "optional", "arguments", "extract" ], "main": "./out/lib/extract-opts.js", "maintainers": [ { "name": "Benjamin Lupton", "email": "b@lupton.cc", "url": "https://github.com/balupton" } ], "name": "extract-opts", "optionalDependencies": {}, "readme": "# Extract Opts\n\n[![Build Status](https://secure.travis-ci.org/bevry/extract-opts.png?branch=master)](http://travis-ci.org/bevry/extract-opts)\n[![NPM version](https://badge.fury.io/js/extract-opts.png)](https://npmjs.org/package/extract-opts)\n[![Flattr this project](https://raw.github.com/balupton/flattr-buttons/master/badge-89x18.gif)](http://flattr.com/thing/344188/balupton-on-Flattr)\n\nExtract the options and callback from a function's arguments easily\n\n\n\n## Install\n\n1. [Install Node.js](http://bevry.me/node/install)\n2. `npm install --save extract-opts`\n\n\n\n## Usage\n\n``` javascript\nvar extractOpts = require('extract-opts').extractOpts;\n\n// fs.readFile(filename, [options], callback)\nvar readFile = function(filename, opts, callback){\n\t// Extract options and callback\n\tvar args = extractOpts(opts, callback);\n\topts = args[0];\n\tcallback = args[1];\n\n\t// Forward for simplicities sake\n\trequire('fs').readFile(filename, opts, callback);\n};\n\n// Test it\nvar next = console.log.bind(console);\nreadFile('package.json', next); // works with no options\nreadFile('package.json', null, next); // works with null options\nreadFile('package.json', {next:next}); // works with just options\n```\n\n\n\n## History\n[You can discover the history inside the `History.md` file](https://github.com/bevry/extract-opts/blob/master/History.md#files)\n\n\n\n## License\nLicensed under the incredibly [permissive](http://en.wikipedia.org/wiki/Permissive_free_software_licence) [MIT License](http://creativecommons.org/licenses/MIT/)\n<br/>Copyright © 2013+ [Bevry Pty Ltd](http://bevry.me)\n<br/>Copyright © 2011-2012 [Benjamin Arthur Lupton](http://balupton.com)\n", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+ssh://git@github.com/bevry/extract-opts.git" }, "scripts": { "test": "node ./out/test/extract-opts-test.js" }, "version": "2.2.0" }