{
	"name": "resolve-options",
	"versions": {
		"1.0.0": {
			"name": "resolve-options",
			"version": "1.0.0",
			"description": "Resolve an options object based on configuration.",
			"author": {
				"name": "Gulp Team",
				"email": "team@gulpjs.com",
				"url": "http://gulpjs.com/"
			},
			"contributors": [
				{
					"name": "Blaine Bublitz",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"repository": {
				"type": "git",
				"url": "git+https://github.com/gulpjs/resolve-options.git"
			},
			"license": "MIT",
			"engines": {
				"node": ">= 0.10"
			},
			"main": "index.js",
			"files": [
				"LICENSE",
				"index.js"
			],
			"scripts": {
				"lint": "eslint index.js test/ && jscs index.js test/",
				"pretest": "npm run lint",
				"test": "mocha --async-only",
				"cover": "istanbul cover _mocha --report lcovonly",
				"coveralls": "npm run cover && istanbul-coveralls"
			},
			"dependencies": {
				"koalas": "^1.0.2",
				"value-or-function": "^2.0.0"
			},
			"devDependencies": {
				"eslint": "^1.10.3",
				"eslint-config-gulp": "^2.0.0",
				"expect": "^1.20.2",
				"istanbul": "^0.4.3",
				"istanbul-coveralls": "^1.0.3",
				"jscs": "^2.4.0",
				"jscs-preset-gulp": "^1.0.0",
				"mocha": "^3.2.0"
			},
			"keywords": [
				"options",
				"functions",
				"resolver",
				"type",
				"configuration",
				"config",
				"opts",
				"opt",
				"default"
			],
			"gitHead": "4fbb627195e3870bed6603843241b04b7eaab4bf",
			"bugs": {
				"url": "https://github.com/gulpjs/resolve-options/issues"
			},
			"homepage": "https://github.com/gulpjs/resolve-options#readme",
			"_id": "resolve-options@1.0.0",
			"_shasum": "bc59048d8ec3442d444b876ef4e83d28bb2a3206",
			"_from": ".",
			"_npmVersion": "2.15.2",
			"_nodeVersion": "0.10.41",
			"_npmUser": {
				"name": "phated",
				"email": "blaine.bublitz@gmail.com"
			},
			"maintainers": [
				{
					"name": "phated",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"dist": {
				"shasum": "bc59048d8ec3442d444b876ef4e83d28bb2a3206",
				"tarball": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.0.0.tgz"
			},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/resolve-options-1.0.0.tgz_1497297017756_0.06147619755938649"
			},
			"directories": {}
		},
		"1.1.0": {
			"name": "resolve-options",
			"version": "1.1.0",
			"description": "Resolve an options object based on configuration.",
			"author": {
				"name": "Gulp Team",
				"email": "team@gulpjs.com",
				"url": "http://gulpjs.com/"
			},
			"contributors": [
				{
					"name": "Blaine Bublitz",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"repository": {
				"type": "git",
				"url": "git+https://github.com/gulpjs/resolve-options.git"
			},
			"license": "MIT",
			"engines": {
				"node": ">= 0.10"
			},
			"main": "index.js",
			"files": [
				"LICENSE",
				"index.js"
			],
			"scripts": {
				"lint": "eslint index.js test/ && jscs index.js test/",
				"pretest": "npm run lint",
				"test": "mocha --async-only",
				"cover": "istanbul cover _mocha --report lcovonly",
				"coveralls": "npm run cover && istanbul-coveralls"
			},
			"dependencies": {
				"value-or-function": "^3.0.0"
			},
			"devDependencies": {
				"eslint": "^1.10.3",
				"eslint-config-gulp": "^2.0.0",
				"expect": "^1.20.2",
				"istanbul": "^0.4.3",
				"istanbul-coveralls": "^1.0.3",
				"jscs": "^2.4.0",
				"jscs-preset-gulp": "^1.0.0",
				"mocha": "^3.2.0"
			},
			"keywords": [
				"options",
				"functions",
				"resolver",
				"type",
				"configuration",
				"config",
				"opts",
				"opt",
				"default"
			],
			"gitHead": "0ef703616063c32751b66085732abfe5306d91a6",
			"bugs": {
				"url": "https://github.com/gulpjs/resolve-options/issues"
			},
			"homepage": "https://github.com/gulpjs/resolve-options#readme",
			"_id": "resolve-options@1.1.0",
			"_shasum": "32bb9e39c06d67338dc9378c0d6d6074566ad131",
			"_from": ".",
			"_npmVersion": "2.15.1",
			"_nodeVersion": "0.10.48",
			"_npmUser": {
				"name": "phated",
				"email": "blaine.bublitz@gmail.com"
			},
			"maintainers": [
				{
					"name": "phated",
					"email": "blaine.bublitz@gmail.com"
				}
			],
			"dist": {
				"shasum": "32bb9e39c06d67338dc9378c0d6d6074566ad131",
				"tarball": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz"
			},
			"_npmOperationalInternal": {
				"host": "s3://npm-registry-packages",
				"tmp": "tmp/resolve-options-1.1.0.tgz_1503109972338_0.7202406944707036"
			},
			"directories": {}
		}
	},
	"time": {
		"modified": "2018-08-18T22:56:25.098Z",
		"created": "2017-06-12T19:50:17.883Z",
		"1.0.0": "2017-06-12T19:50:17.883Z",
		"1.1.0": "2017-08-19T02:32:52.482Z"
	},
	"users": {},
	"dist-tags": {
		"latest": "1.1.0"
	},
	"_uplinks": {
		"npmjs": {
			"etag": "W/\"265d6019979f1e6293eae3f6c8217062\"",
			"fetched": 1597847600494
		}
	},
	"_distfiles": {
		"resolve-options-1.0.0.tgz": {
			"url": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.0.0.tgz",
			"sha": "bc59048d8ec3442d444b876ef4e83d28bb2a3206",
			"registry": "npmjs"
		},
		"resolve-options-1.1.0.tgz": {
			"url": "https://registry.npmjs.org/resolve-options/-/resolve-options-1.1.0.tgz",
			"sha": "32bb9e39c06d67338dc9378c0d6d6074566ad131",
			"registry": "npmjs"
		}
	},
	"_attachments": {
		"resolve-options-1.1.0.tgz": {
			"shasum": "32bb9e39c06d67338dc9378c0d6d6074566ad131"
		}
	},
	"_rev": "11-b1c018537ff9a732",
	"_id": "resolve-options",
	"readme": "<p align=\"center\">\n  <a href=\"http://gulpjs.com\">\n    <img height=\"257\" width=\"114\" src=\"https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png\">\n  </a>\n</p>\n\n# resolve-options\n\n[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]\n\nResolve an options object based on configuration.\n\n## Usage\n\n```js\n// This example assumes a Vinyl file\n\nvar createResolver = require('resolve-options');\n\nvar config = {\n  cwd: {\n    type: 'string',\n    default: process.cwd\n  },\n  sourcemaps: {\n    type: 'boolean',\n    default: false\n  },\n  since: {\n    type: ['date', 'number']\n  },\n  read: {\n    type: 'boolean'\n  }\n};\n\nvar options = {\n  sourcemaps: true,\n  since: Date.now(),\n  read: function(file) {\n    return (file.extname !== '.mp4');\n  }\n};\n\nvar resolver = createResolver(config, options);\n\nvar cwd = resolver.resolve('cwd', file);\n// cwd === process.cwd()\n\nvar sourcemaps = resolver.resolve('sourcemaps', file);\n// sourcemaps === true\n\nvar read = resolver.resolve('read', file);\n// Given .mp4, read === false\n// Given .txt, read === true\n```\n\n## API\n\n### `createResolver([config,] [options])`\n\nTakes a `config` object that describes the options to accept/resolve and an `options` object (usually passed by a user) to resolve against the `config`. Returns a `resolver` that contains a `resolve` method for realtime resolution of options.\n\nThe `config` object takes the following structure:\n```graphql\nconfig {\n  [optionKey] {\n    type // string, array or function\n    default // any value or function\n  }\n}\n```\n\nEach option is represented by its `optionKey` in the `config` object. It must be an object with a `type` property.\n\nThe `type` property must be a string, array or function which will be passed to the [`value-or-function`][value-or-function] module (functions will be bound to the resolver to allow for dependent options).\n\nA `default` property may also be specified as a fallback if the option isn't available or is invalid. The `default` value can be any value or a function (functions will be bound to the resolver to allow for dependent defaults). __Note:__ `default` values are not type-validated by the `value-or-function` module.\n\n### `resolver.resolve(optionKey, [...arguments])`\n\nTakes an `optionKey` string and any number of `arguments` to apply if an option is a function. Returns the resolved value for the `optionKey`.\n\n## License\n\nMIT\n\n[value-or-function]: https://github.com/gulpjs/value-or-function\n\n[downloads-image]: http://img.shields.io/npm/dm/resolve-options.svg\n[npm-url]: https://npmjs.com/package/resolve-options\n[npm-image]: http://img.shields.io/npm/v/resolve-options.svg\n\n[travis-url]: https://travis-ci.org/gulpjs/resolve-options\n[travis-image]: http://img.shields.io/travis/gulpjs/resolve-options.svg?label=travis-ci\n\n[appveyor-url]: https://ci.appveyor.com/project/gulpjs/resolve-options\n[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/resolve-options.svg?label=appveyor\n\n[coveralls-url]: https://coveralls.io/r/gulpjs/resolve-options\n[coveralls-image]: http://img.shields.io/coveralls/gulpjs/resolve-options/master.svg\n\n[gitter-url]: https://gitter.im/gulpjs/gulp\n[gitter-image]: https://badges.gitter.im/gulpjs/gulp.png"
}