{"id":19340779,"url":"https://github.com/0xvoidmain/minux","last_synced_at":"2026-04-25T23:34:28.804Z","repository":{"id":57298172,"uuid":"75447157","full_name":"0xvoidmain/minux","owner":"0xvoidmain","description":"A simple library for flux architecture","archived":false,"fork":false,"pushed_at":"2016-12-30T10:51:16.000Z","size":3,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T03:57:51.279Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xvoidmain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-12-03T02:40:25.000Z","updated_at":"2016-12-30T10:49:54.000Z","dependencies_parsed_at":"2022-09-06T04:20:27.780Z","dependency_job_id":null,"html_url":"https://github.com/0xvoidmain/minux","commit_stats":null,"previous_names":["0xvoidmain/minux","tunght91/minux"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xvoidmain/minux","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvoidmain%2Fminux","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvoidmain%2Fminux/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvoidmain%2Fminux/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvoidmain%2Fminux/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xvoidmain","download_url":"https://codeload.github.com/0xvoidmain/minux/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xvoidmain%2Fminux/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32280975,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-25T18:29:39.964Z","status":"ssl_error","status_checked_at":"2026-04-25T18:29:32.149Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-10T03:27:51.691Z","updated_at":"2026-04-25T23:34:28.786Z","avatar_url":"https://github.com/0xvoidmain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Minux\n\nA simple library for flux architecture\n\n\n## Example\n\n```js\nvar assert = require('assert');\nvar minux = require('./index');\n\n\nminux().set({\n\ta: 1,\n\tb: 2,\n\tc: {\n\t\td: [1, 2, 3, 4, 5],\n\t\te: {\n\t\t\tf: {\n\t\t\t\tg: 2\n\t\t\t}\n\t\t}\n\t}\n});\n\nassert(minux().get('a') === 1);\nassert(minux().get('c.d[0]') === 1);\nassert(minux('c.d').get('[0]') === 1);\nassert(minux('c.e').get('f.g') === 2);\n\nminux().set({ a: 2 });\n\nassert(minux().get('a') === 2);\nassert(minux().get('b') === 2);\n\nminux('a').set(2);\nassert(minux().get('a') === 2);\n\nminux('a').set({\n\ta1: 1,\n\ta2: {\n\t\ta21: 1\n\t}\n});\n\nassert(minux().get('a.a1') === 1);\nassert(minux().get('a.a2.a21') === 1);\n\nminux('a').set('a2.a21', 3);\nassert(minux().get('a.a2.a21') === 3);\n\nminux('a.a2.a21').set(5);\nassert(minux().get('a.a2.a21') === 5);\n\nminux('a.a2').set({ a22: 6 });\n\nassert(minux().get('a.a2.a21') === 5);\nassert(minux().get('a.a2.a22') === 6);\n\nminux('a.a2').set('a22', {a221: 6});\nminux('a').set('a2.a22', {a222: 'a222'});\n\nassert(minux().get('a.a2.a22.a221') === 6);\nassert(minux().get('a.a2.a22.a222') === 'a222');\n\nminux('a.a2.a22').replace(2);\nassert(minux().get('a.a2.a22.a222') === undefined);\nassert(minux().get('a.a2.a22') === 2);\n\nconsole.log('-----Test notify------');\nminux('a.a2.a21').on(function() {\n\tconsole.log('Value of a.a2.a21 changed to: ', JSON.stringify(minux('a.a2.a21').value()));\n})\n\nminux('a.a2').on(function() {\n\tconsole.log('Value of a.a2 changed to: ', JSON.stringify(minux('a.a2').value()));\n});\n\nminux('a').on(function() {\n\tconsole.log('Value of a changed to: ', JSON.stringify(minux('a').value()));\n});\n\nconsole.log('\u003e a.a2.a23 = 1');\nminux().set('a.a2', {\n\ta23: 1\n});\nconsole.log('\\n\\n');\n\nconsole.log('\u003e a.a2.a21.a211 = 1');\nminux().set('a.a2.a21', {\n\ta211: 1\n});\nconsole.log('\\n\\n');\n\nconsole.log('GOOD JOB!')\n\n```\n\n## API\n\n### minux(path: string)\n\nWhere `path` is a string like `foo.bar` or `foo.bar[0][1]` or `[0][1].foo['bar']`.\n\nThe path also can be an array: ['foo', 'bar', 0]\n\nThe function will return a minux object\n\n\n### minuxObject.value()\n\nreturn the value in store get by path(*)\n\n\n### minuxObject.get(path)\n\nWhere `path` is a string like `foo.bar` or `foo.bar[0][1]` or `[0][1].foo['bar']`.\n\nThe path also can be an array: ['foo', 'bar', 0]\n\nreturn the value in object get by path\n\n\n### minuxObject.set(path, value)\n\nWhere `path` is a string like `foo.bar` or `foo.bar[0][1]` or `[0][1].foo['bar']`.\n\nThe path also can be an array: ['foo', 'bar', 0]\n\nThe function will shallow merge value into current value. The function will trigger to \t\ninterested events \n\n\n### minuxObject.replace(path, value)\n\nWhere `path` is a string like `foo.bar` or `foo.bar[0][1]` or `[0][1].foo['bar']`.\n\nThe path also can be an array: ['foo', 'bar', 0]\n\nThe function will change current value to new value. The function will trigger to \t\ninterested events \n\n\n### minuxObject.on(function)\nAdd an event to listen\n\n\n### minuxObject.off(function)\nRemove an event to listen\n\n\n## Installation\n\nWith [npm](https://npmjs.org) do:\n\n```bash\nnpm install minux\n```\n\n\n## License\n\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvoidmain%2Fminux","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xvoidmain%2Fminux","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xvoidmain%2Fminux/lists"}