{"name":"define-properties-x","version":"2.0.2","description":"Define multiple non-enumerable properties at once.","homepage":"https://github.com/Xotic750/define-properties-x","author":{"name":"Graham Fairweather","email":"xotic750@gmail.com"},"copyright":"Copyright (c) 2015-2017","keywords":["define","descriptor","property descriptor","object","Object.defineProperty","Object.defineProperties","module","javascript","nodejs","browser"],"main":"index.js","engines":{"node":"*"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/Xotic750/define-properties-x.git"},"bugs":{"url":"https://github.com/Xotic750/define-properties-x/issues"},"dependencies":{"array-for-each-x":"^1.1.0","has-symbol-support-x":"^1.4.0","is-function-x":"^1.4.0","object-define-property-x":"^2.0.0","object-keys-x":"^1.1.0","validate.io-undefined":"^1.0.3"},"devDependencies":{"@xotic750/eslint-config-standard-x":"^2.2.1","browserify":"^14.4.0","browserify-derequire":"^0.9.4","cross-env":"^5.0.1","es5-shim":"^4.5.9","es6-shim":"^0.35.3","es7-shim":"^6.0.0","eslint":"^4.2.0","eslint-plugin-compat":"^1.0.4","eslint-plugin-css-modules":"^2.7.2","eslint-plugin-eslint-comments":"^1.0.2","eslint-plugin-jsdoc":"^3.1.1","eslint-plugin-json":"^1.2.0","eslint-plugin-no-use-extend-native":"^0.3.12","husky":"^0.13.4","jasmine-node":"^1.14.5","jsdoc-to-markdown":"^3.0.0","json3":"^3.3.2","make-jasmine-spec-runner-html":"^1.3.0","ncp":"^2.0.0","nodemon":"^1.11.0","nsp":"^2.6.3","parallelshell":"^3.0.1","replace-x":"^1.5.0","rimraf":"^2.6.1","serve":"^6.0.2","uglify-js":"^3.0.24"},"scripts":{"clean":"rimraf README.md lib/*","clean:jasmine":"rimraf tests/index.html tests/run.js","clean:all":"npm run clean:jasmine && npm run clean","build":"npm run clean && npm run lint && npm run browserify && npm run uglify && npm run docs && npm test && npm run security","build:jasmine":"npm run clean:jasmine && make-jasmine-spec-runner-html","build:setver":"replace-x \" @version .*\" \" @version $(node -p -e \"require('./package.json').version\")\" index.js","build:name":"replace-x \" @module .*\" \" @module $(node -p -e \"require('./package.json').name\")\" index.js","build:description":"replace-x \" @file .*\" \" @file $(node -p -e \"require('./package.json').description\")\" index.js","build:replace":"npm run build:setver && npm run build:name && npm run build:description","production":"npm run clean:all && npm run build:jasmine && npm run build:replace && npm run build","start":"parallelshell \"serve\" \"nodemon --watch index.js --exec 'npm run build'\"","docs:name":"replace-x \"@{PACKAGE-NAME}\" \"$(node -p -e \"require('./package.json').name\")\" README.md","docs:badges":"ncp badges.html README.md && npm run docs:name","docs":"npm run docs:badges && jsdoc2md --name-format --example-lang js index.js >> README.md","lint":"eslint *.js tests/spec/*.js","lint-fix":"npm run lint -- --fix","security":"nsp check","test":"jasmine-node --matchall tests/spec/","browserify":"browserify -p browserify-derequire -e index.js -o lib/define-properties-x.js -u 'crypto' -s returnExports","uglify":"uglifyjs lib/define-properties-x.js -o lib/define-properties-x.min.js --config-file .uglifyjsrc.json","precommit":"npm run production","prepush":"npm run production"},"gitHead":"e13667b21bf57a3322f59cd8287616982096e4db","_id":"define-properties-x@2.0.2","_npmVersion":"5.3.0","_nodeVersion":"6.11.2","_npmUser":{"name":"xotic750","email":"xotic750@gmail.com"},"dist":{"integrity":"sha512-l+HZAgKUr8yNKzcVxPfcRJrh+8wSqrcPTXiiyhRiI3I6NNPuy4eZGIzubnBu6XyZzmxeLBo1saJ3tfWFzwIJPg==","shasum":"9307b050b5ee369f4ca70cb993457ed45b652a8f","tarball":"http://registry-npm.ywwl.com/define-properties-x/download/define-properties-x-2.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDoOT8Gn69SkkSiJtntaFLmEJAUC114QfXiecdf9ihnFAiBKFNzPhxDiw97tw/Oi/GKcjP5JHky8wBH4F+H/n1uYQA=="}],"size":38947,"noattachment":false,"key":"/define-properties-x/-/define-properties-x-2.0.2.tgz"},"maintainers":[{"name":"xotic750","email":"xotic750@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/define-properties-x-2.0.2.tgz_1502491996182_0.8728021883871406"},"directories":{},"readme":"<a\n  href=\"https://travis-ci.org/Xotic750/define-properties-x\"\n  title=\"Travis status\">\n<img\n  src=\"https://travis-ci.org/Xotic750/define-properties-x.svg?branch=master\"\n  alt=\"Travis status\" height=\"18\">\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/define-properties-x\"\n  title=\"Dependency status\">\n<img src=\"https://david-dm.org/Xotic750/define-properties-x/status.svg\"\n  alt=\"Dependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://david-dm.org/Xotic750/define-properties-x?type=dev\"\n  title=\"devDependency status\">\n<img src=\"https://david-dm.org/Xotic750/define-properties-x/dev-status.svg\"\n  alt=\"devDependency status\" height=\"18\"/>\n</a>\n<a\n  href=\"https://badge.fury.io/js/define-properties-x\"\n  title=\"npm version\">\n<img src=\"https://badge.fury.io/js/define-properties-x.svg\"\n  alt=\"npm version\" height=\"18\">\n</a>\n<a\n  href=\"https://www.jsdelivr.com/package/npm/define-properties-x\"\n  title=\"jsDelivr hits\">\n<img src=\"https://data.jsdelivr.com/v1/package/npm/define-properties-x/badge?style=rounded\"\n  alt=\"jsDelivr hits\" height=\"18\">\n</a>\n<a\n  href=\"https://bettercodehub.com/results/Xotic750/define-properties-x\"\n  title=\"bettercodehub score\">\n<img src=\"https://bettercodehub.com/edge/badge/Xotic750/define-properties-x?branch=master\"\n  alt=\"bettercodehub score\" height=\"18\">\n</a>\n<a\n  href=\"https://coveralls.io/github/Xotic750/define-properties-x?branch=master\"\n  title=\"Coverage Status\">\n<img src=\"https://coveralls.io/repos/github/Xotic750/define-properties-x/badge.svg?branch=master\"\n  alt=\"Coverage Status\" height=\"18\">\n</a>\n\n<a name=\"module_define-properties-x\"></a>\n\n## define-properties-x\n\nDefine multiple non-enumerable properties at once.\n\n**See**: [define-properties](https://www.npmjs.com/package/define-properties)\n\n- [define-properties-x](#module_define-properties-x)\n  - [`.properties(object, map, [predicates])`](#module_define-properties-x.properties)\n  - [`.property(object, prop, value, [force])`](#module_define-properties-x.property)\n\n<a name=\"module_define-properties-x.properties\"></a>\n\n### `define-properties-x.properties(object, map, [predicates])`\n\nDefine multiple non-enumerable properties at once.\nUses `Object.defineProperty` when available; falls back to standard\nassignment in older engines. Existing properties are not overridden.\nAccepts a map of property names to a predicate that, when true,\nforce-overrides.\n\n**Kind**: static method of [<code>define-properties-x</code>](#module_define-properties-x)\n\n| Param        | Type                | Description                                 |\n| ------------ | ------------------- | ------------------------------------------- |\n| object       | <code>Object</code> | The object on which to define the property. |\n| map          | <code>Object</code> | The object of properties.                   |\n| [predicates] | <code>Object</code> | The object of property predicates.          |\n\n**Example**\n\n```js\nimport * as define from 'define-properties-x';\n\ndefine.properties(\n  {\n    a: 1,\n    b: 2,\n  },\n  {\n    a: function() {\n      return false;\n    },\n    b: function() {\n      return true;\n    },\n  },\n);\n```\n\n<a name=\"module_define-properties-x.property\"></a>\n\n### `define-properties-x.property(object, prop, value, [force])`\n\nJust like `properties` but for defining a single non-enumerable\nproperty. Useful in environments that do not\nsupport `Computed property names`. This can be done\nwith `properties`, but this method can read a little cleaner.\n\n**Kind**: static method of [<code>define-properties-x</code>](#module_define-properties-x)\n\n| Param   | Type                                       | Default            | Description                                 |\n| ------- | ------------------------------------------ | ------------------ | ------------------------------------------- |\n| object  | <code>Object</code>                        |                    | The object on which to define the property. |\n| prop    | <code>string</code> \\| <code>Symbol</code> |                    | The property name.                          |\n| value   | <code>\\*</code>                            |                    | The value of the property.                  |\n| [force] | <code>boolean</code>                       | <code>false</code> | If `true` then set property regardless.     |\n\n**Example**\n\n```js\nimport * as define from 'define-properties-x';\n\nconst myString = 'something';\ndefine.property(obj, Symbol.iterator, function() {}, true);\ndefine.property(obj, myString, function() {}, true);\n```\n","publish_time":1502491997162,"_cnpm_publish_time":1502491997162,"dist-tags":{"latest":"4.1.2"}}