{ "name": "object-assign", "version": "4.0.1", "description": "ES6 Object.assign() ponyfill", "license": "MIT", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/object-assign.git" }, "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "http://sindresorhus.com" }, "engines": { "node": ">=0.10.0" }, "scripts": { "test": "xo && mocha", "bench": "matcha bench.js" }, "files": [ "index.js" ], "keywords": [ "object", "assign", "extend", "properties", "es6", "ecmascript", "harmony", "ponyfill", "prollyfill", "polyfill", "shim", "browser" ], "devDependencies": { "lodash": "^3.10.1", "matcha": "^0.6.0", "mocha": "*", "xo": "*" }, "xo": { "envs": [ "node", "mocha" ] }, "readme": "# object-assign [![Build Status](https://travis-ci.org/sindresorhus/object-assign.svg?branch=master)](https://travis-ci.org/sindresorhus/object-assign)\n\n> ES6 [`Object.assign()`](http://www.2ality.com/2014/01/object-assign.html) ponyfill\n\n> Ponyfill: A polyfill that doesn't overwrite the native method\n\n\n## Install\n\n```sh\n$ npm install --save object-assign\n```\n\n\n## Usage\n\n```js\nvar objectAssign = require('object-assign');\n\nobjectAssign({foo: 0}, {bar: 1});\n//=> {foo: 0, bar: 1}\n\n// multiple sources\nobjectAssign({foo: 0}, {bar: 1}, {baz: 2});\n//=> {foo: 0, bar: 1, baz: 2}\n\n// overwrites equal keys\nobjectAssign({foo: 0}, {foo: 1}, {foo: 2});\n//=> {foo: 2}\n\n// ignores null and undefined sources\nobjectAssign({foo: 0}, null, {bar: 1}, undefined);\n//=> {foo: 0, bar: 1}\n```\n\n\n## API\n\n### objectAssign(target, source, [source, ...])\n\nAssigns enumerable own properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.\n\n\n## Resources\n\n- [ES6 spec - Object.assign](https://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign)\n\n\n## License\n\nMIT © [Sindre Sorhus](http://sindresorhus.com)\n", "readmeFilename": "readme.md", "bugs": { "url": "https://github.com/sindresorhus/object-assign/issues" }, "homepage": "https://github.com/sindresorhus/object-assign#readme", "_id": "object-assign@4.0.1", "_shasum": "99504456c3598b5cad4fc59c26e8a9bb107fe0bd", "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "_from": "object-assign@>=4.0.1 <5.0.0" }