UNPKG

motion

Version:

motion - moving development forward

93 lines (92 loc) 3.52 kB
{ "_args": [ [ "object-assign@https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "/Users/nw/flint/packages/flint" ] ], "_from": "object-assign@>=4.0.1 <5.0.0", "_id": "object-assign@4.0.1", "_inCache": true, "_location": "/object-assign", "_phantomChildren": {}, "_requested": { "name": "object-assign", "raw": "object-assign@https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "rawSpec": "https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "scope": null, "spec": "https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "type": "remote" }, "_requiredBy": [ "/css-loader", "/cssnano", "/globby", "/meow", "/normalize-url", "/postcss-minify-font-values", "/postcss-normalize-url" ], "_resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "_shasum": "99504456c3598b5cad4fc59c26e8a9bb107fe0bd", "_shrinkwrap": null, "_spec": "object-assign@https://registry.npmjs.org/object-assign/-/object-assign-4.0.1.tgz", "_where": "/Users/nw/flint/packages/flint", "author": { "email": "sindresorhus@gmail.com", "name": "Sindre Sorhus", "url": "http://sindresorhus.com" }, "bugs": { "url": "https://github.com/sindresorhus/object-assign/issues" }, "dependencies": {}, "description": "ES6 Object.assign() ponyfill", "devDependencies": { "lodash": "^3.10.1", "matcha": "^0.6.0", "mocha": "*", "xo": "*" }, "engines": { "node": ">=0.10.0" }, "files": [ "index.js" ], "homepage": "https://github.com/sindresorhus/object-assign#readme", "keywords": [ "assign", "browser", "ecmascript", "es6", "extend", "harmony", "object", "polyfill", "ponyfill", "prollyfill", "properties", "shim" ], "license": "MIT", "name": "object-assign", "optionalDependencies": {}, "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", "repository": { "type": "git", "url": "git+https://github.com/sindresorhus/object-assign.git" }, "scripts": { "bench": "matcha bench.js", "test": "xo && mocha" }, "version": "4.0.1", "xo": { "envs": [ "mocha", "node" ] } }