{"id":15853344,"url":"https://github.com/fabioricali/spyo","last_synced_at":"2025-04-01T18:44:03.272Z","repository":{"id":57368189,"uuid":"120499794","full_name":"fabioricali/spyo","owner":"fabioricali","description":"Observe an object, check when it's change.","archived":false,"fork":false,"pushed_at":"2018-02-13T16:15:03.000Z","size":135,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-09T21:35:06.567Z","etag":null,"topics":["changed","observer","watching"],"latest_commit_sha":null,"homepage":"","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/fabioricali.png","metadata":{"files":{"readme":"README.hbs","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":"2018-02-06T17:53:34.000Z","updated_at":"2018-02-07T17:17:48.000Z","dependencies_parsed_at":"2022-09-05T20:51:03.936Z","dependency_job_id":null,"html_url":"https://github.com/fabioricali/spyo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fspyo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fspyo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fspyo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fabioricali%2Fspyo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fabioricali","download_url":"https://codeload.github.com/fabioricali/spyo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246281223,"owners_count":20752209,"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":["changed","observer","watching"],"created_at":"2024-10-05T19:04:22.670Z","updated_at":"2025-04-01T18:44:03.255Z","avatar_url":"https://github.com/fabioricali.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Spyo\nObserve an object, check when it's change.\n\n\u003ca href=\"https://travis-ci.org/fabioricali/spyo\" target=\"_blank\"\u003e\u003cimg src=\"https://travis-ci.org/fabioricali/spyo.svg?branch=master\" title=\"Build Status\"/\u003e\u003c/a\u003e\n\u003ca href=\"https://opensource.org/licenses/MIT\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" title=\"License: MIT\"/\u003e\u003c/a\u003e\n\n## Installation\n\n### Node.js\n```\nnpm install spyo --save\n```\n\n### Browser\n\n#### Local\n```html\n\u003cscript src=\"node_modules/spyo/dist/spyo.min.js\"\u003e\u003c/script\u003e\n```\n\n#### CDN unpkg\n```html\n\u003cscript src=\"https://unpkg.com/spyo/dist/spyo.min.js\"\u003e\u003c/script\u003e\n```\n\n## Example\n```javascript\nconst Spyo = require('spyo');\n\nconst myObject = {\n    firstName: 'Mike',\n    lastName: 'Red'\n};\n\nconst mySpy = new Spyo(myObject);\n\nmyObject.firstName = 'John';\n\nmySpy.onChange((different) =\u003e {\n    console.log('is different:', different);\n});\n```\n\n## Use provider function\n```javascript\nconst mySpy = new Spyo(() =\u003e {\n    return Math.random();\n});\n\nmySpy.onChange((different) =\u003e {\n    console.log('is different:', different);\n});\n```\n\n## API\n\n{{\u003emain}}\n\n## Changelog\nYou can view the changelog \u003ca target=\"_blank\" href=\"https://github.com/fabioricali/spyo/blob/master/CHANGELOG.md\"\u003ehere\u003c/a\u003e\n\n## License\nSpyo is open-sourced software licensed under the \u003ca target=\"_blank\" href=\"http://opensource.org/licenses/MIT\"\u003eMIT license\u003c/a\u003e\n\n## Author\n\u003ca target=\"_blank\" href=\"http://rica.li\"\u003eFabio Ricali\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fspyo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffabioricali%2Fspyo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffabioricali%2Fspyo/lists"}