UNPKG

layaair2-cmd

Version:

layaair version 2 toolkit

127 lines (126 loc) 6.81 kB
{ "_args": [ [ { "raw": "is-accessor-descriptor@^0.1.6", "scope": null, "escapedName": "is-accessor-descriptor", "name": "is-accessor-descriptor", "rawSpec": "^0.1.6", "spec": ">=0.1.6 <0.2.0", "type": "range" }, "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\is-descriptor" ] ], "_from": "is-accessor-descriptor@>=0.1.6 <0.2.0", "_id": "is-accessor-descriptor@0.1.6", "_inCache": true, "_location": "/is-accessor-descriptor", "_nodeVersion": "5.0.0", "_npmUser": { "name": "jonschlinkert", "email": "github@sellside.com" }, "_npmVersion": "3.3.6", "_phantomChildren": { "is-buffer": "1.1.6" }, "_requested": { "raw": "is-accessor-descriptor@^0.1.6", "scope": null, "escapedName": "is-accessor-descriptor", "name": "is-accessor-descriptor", "rawSpec": "^0.1.6", "spec": ">=0.1.6 <0.2.0", "type": "range" }, "_requiredBy": [ "/is-descriptor" ], "_resolved": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz", "_shasum": "a9e12cb3ae8d876727eeef3843f8a0897b5c98d6", "_shrinkwrap": null, "_spec": "is-accessor-descriptor@^0.1.6", "_where": "E:\\Mine\\Project\\git\\laya\\dawawa\\layaairdoc_cmd\\node_modules\\is-descriptor", "author": { "name": "Jon Schlinkert", "url": "https://github.com/jonschlinkert" }, "bugs": { "url": "https://github.com/jonschlinkert/is-accessor-descriptor/issues" }, "dependencies": { "kind-of": "^3.0.2" }, "description": "Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.", "devDependencies": { "mocha": "*", "should": "*" }, "directories": {}, "dist": { "shasum": "a9e12cb3ae8d876727eeef3843f8a0897b5c98d6", "tarball": "https://registry.npmjs.org/is-accessor-descriptor/-/is-accessor-descriptor-0.1.6.tgz" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "gitHead": "e64ae49c456c9f31dab47934b0183e2a9938b5bd", "homepage": "https://github.com/jonschlinkert/is-accessor-descriptor", "keywords": [ "accessor", "check", "data", "descriptor", "get", "getter", "is", "keys", "object", "properties", "property", "set", "setter", "type", "valid", "value" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "jonschlinkert", "email": "github@sellside.com" } ], "name": "is-accessor-descriptor", "optionalDependencies": {}, "readme": "# is-accessor-descriptor [![NPM version](https://img.shields.io/npm/v/is-accessor-descriptor.svg)](https://www.npmjs.com/package/is-accessor-descriptor) [![Build Status](https://img.shields.io/travis/jonschlinkert/is-accessor-descriptor.svg)](https://travis-ci.org/jonschlinkert/is-accessor-descriptor)\n\n> Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.\n\n- [Install](#install)\n- [Usage](#usage)\n- [Examples](#examples)\n- [API](#api)\n- [Related projects](#related-projects)\n- [Running tests](#running-tests)\n- [Contributing](#contributing)\n- [Author](#author)\n- [License](#license)\n\n_(TOC generated by [verb](https://github.com/verbose/verb) using [markdown-toc](https://github.com/jonschlinkert/markdown-toc))_\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm i is-accessor-descriptor --save\n```\n\n## Usage\n\n```js\nvar isAccessor = require('is-accessor-descriptor');\n\nisAccessor({get: function() {}});\n//=> true\n```\n\nYou may also pass an object and property name to check if the property is an accessor:\n\n```js\nisAccessor(foo, 'bar');\n```\n\n## Examples\n\n`false` when not an object\n\n```js\nisAccessor('a')\nisAccessor(null)\nisAccessor([])\n//=> false\n```\n\n`true` when the object has valid properties\n\nand the properties all have the correct JavaScript types:\n\n```js\nisAccessor({get: noop, set: noop})\nisAccessor({get: noop})\nisAccessor({set: noop})\n//=> true\n```\n\n`false` when the object has invalid properties\n\n```js\nisAccessor({get: noop, set: noop, bar: 'baz'})\nisAccessor({get: noop, writable: true})\nisAccessor({get: noop, value: true})\n//=> false\n```\n\n`false` when an accessor is not a function\n\n```js\nisAccessor({get: noop, set: 'baz'})\nisAccessor({get: 'foo', set: noop})\nisAccessor({get: 'foo', bar: 'baz'})\nisAccessor({get: 'foo', set: 'baz'})\n//=> false\n```\n\n`false` when a value is not the correct type\n\n```js\nisAccessor({get: noop, set: noop, enumerable: 'foo'})\nisAccessor({set: noop, configurable: 'foo'})\nisAccessor({get: noop, configurable: 'foo'})\n//=> false\n```\n\n## Related projects\n\n* [is-accessor-descriptor](https://www.npmjs.com/package/is-accessor-descriptor): Returns true if a value has the characteristics of a valid JavaScript accessor descriptor. | [homepage](https://github.com/jonschlinkert/is-accessor-descriptor)\n* [is-data-descriptor](https://www.npmjs.com/package/is-data-descriptor): Returns true if a value has the characteristics of a valid JavaScript data descriptor. | [homepage](https://github.com/jonschlinkert/is-data-descriptor)\n* [is-descriptor](https://www.npmjs.com/package/is-descriptor): Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for… [more](https://www.npmjs.com/package/is-descriptor) | [homepage](https://github.com/jonschlinkert/is-descriptor)\n* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject)\n\n## Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm i -d && npm test\n```\n\n## Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/is-accessor-descriptor/issues/new).\n\n## Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n## License\n\nCopyright © 2015 [Jon Schlinkert](https://github.com/jonschlinkert)\nReleased under the MIT license.\n\n***\n\n_This file was generated by [verb](https://github.com/verbose/verb) on December 28, 2015._", "readmeFilename": "README.md", "repository": { "type": "git", "url": "git+https://github.com/jonschlinkert/is-accessor-descriptor.git" }, "scripts": { "test": "mocha" }, "verb": { "related": { "list": [ "is-accessor-descriptor", "is-data-descriptor", "is-descriptor", "isobject" ] }, "plugins": [ "gulp-format-md" ], "layout": "default" }, "version": "0.1.6" }