{"id":19560620,"url":"https://github.com/zoubin/mixy","last_synced_at":"2025-08-07T14:34:44.523Z","repository":{"id":65411293,"uuid":"47089418","full_name":"zoubin/mixy","owner":"zoubin","description":"Sugar methods to manipulate objects","archived":false,"fork":false,"pushed_at":"2015-11-30T06:38:04.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T20:05:35.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zoubin.png","metadata":{"files":{"readme":"README.md","changelog":"changelog.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-30T01:59:22.000Z","updated_at":"2015-11-30T04:22:54.000Z","dependencies_parsed_at":"2023-01-22T06:45:37.921Z","dependency_job_id":null,"html_url":"https://github.com/zoubin/mixy","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fmixy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fmixy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fmixy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zoubin%2Fmixy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zoubin","download_url":"https://codeload.github.com/zoubin/mixy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240822615,"owners_count":19863302,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T05:08:17.411Z","updated_at":"2025-02-26T08:41:33.258Z","avatar_url":"https://github.com/zoubin.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mixy\nSugar methods to manipulate objects.\n\n[![version](https://img.shields.io/npm/v/mixy.svg)](https://www.npmjs.org/package/mixy)\n[![status](https://travis-ci.org/zoubin/mixy.svg?branch=master)](https://travis-ci.org/zoubin/mixy)\n[![coverage](https://img.shields.io/coveralls/zoubin/mixy.svg)](https://coveralls.io/github/zoubin/mixy)\n[![devDependencies](https://david-dm.org/zoubin/mixy/dev-status.svg)](https://david-dm.org/zoubin/mixy#info=devDependencies)\n\n## Methods\n\n```javascript\nvar mixy = require('mixy')\n// actually `mix === mixy`\nvar mix = mixy.mix\n\n```\n\n* [`mix`](#mix)\n* [`fill`](#fill)\n* [`pick`](#pick)\n* [`exclude`](#exclude)\n* [`del`](#del)\n\n### mix\nSignature: `r = mix(r, ...sources)`\n\nMix own properties from all `sources` into the receiver object `r`.\n\n```javascript\nvar o = { x: 1 }\nmix(o, { x: 2 }, null, { y: 3 }, { x: 4 })\n// o == { x: 4, y: 3 }\n\n```\n\n### fill\nSignature: `r = fill(r, defaults)`\n\nMix own properties from `defaults` into the receiver object `r`, except those `r` already owns.\n\n```javascript\nvar o = { x: 1, y: 2, z: null, w: undefined }\nfill(o, { x: 2, z: 3, w: 4, a: null, b: undefined })\n// o == { x: 1, y: 2, z: null, w: undefined, a: null, b: undefined }\n\n```\n\n### pick\nSignature: `o = pick(keys, ...sources)`\n\nPick properties specified in `keys` from `sources` to create the returned object.\n\n```javascript\nvar o = pick(['x', 'y'], { x: 1, y: 2 }, null, { x: 3 })\n// o == { x: 3, y: 2 }\n\no = pick('x', { x: 1, y: 2 }, { x: 3 })\n// o == { x: 3 }\n\n```\n\n### exclude\nSignature: `o = exclude(keys, ...sources)`\n\nPick properties from `sources` to create the returned object, except those specified in `keys`.\n\n```javascript\nvar o = exclude('y', { x: 1, y: 2 }, null, { x: 3 })\n// o == { x: 3 }\n\no = exclude(['x', 'y'], { x: 1, y: 2, z: 3 }, { x: 3, z: 4 })\n// o == { z: 4 }\n\n```\n\n### del\nSignature: `o = del(keys, target)`\n\nDelete `keys` from `target`,\nand return a new object containing those deleted `key-value`s.\nIf none is deleted, `null` will be returned.\n\n```javascript\nvar o = del('y', { x: 1, y: 2 })\n// o == { y: 2 }\n\nvar o = del('z', { x: 1, y: 2 })\n// o == null\n\no = del(['x', 'y'], { x: 1, y: 2, z: 3 })\n// o == { x: 1, y: 2 }\n\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fmixy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzoubin%2Fmixy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzoubin%2Fmixy/lists"}