{"id":45601164,"url":"https://github.com/lvl99/objectro","last_synced_at":"2026-02-23T14:39:42.606Z","repository":{"id":44936003,"uuid":"153283823","full_name":"lvl99/objectro","owner":"lvl99","description":"🔀 Transform and ☑️ validate 🎁 objects.","archived":false,"fork":false,"pushed_at":"2023-01-09T13:03:24.000Z","size":670,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-08T16:11:22.732Z","etag":null,"topics":["destructure","filter","javascript","object","restructure","transform","validate"],"latest_commit_sha":null,"homepage":"https://lvl99.github.io/objectro/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lvl99.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-16T12:44:34.000Z","updated_at":"2023-01-09T12:56:57.000Z","dependencies_parsed_at":"2023-02-08T12:00:39.314Z","dependency_job_id":null,"html_url":"https://github.com/lvl99/objectro","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"purl":"pkg:github/lvl99/objectro","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvl99%2Fobjectro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvl99%2Fobjectro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvl99%2Fobjectro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvl99%2Fobjectro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lvl99","download_url":"https://codeload.github.com/lvl99/objectro/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lvl99%2Fobjectro/sbom","scorecard":{"id":606343,"data":{"date":"2025-08-11","repo":{"name":"github.com/lvl99/objectro","commit":"baeb187bb99c5e93aec8fbf02e652ae4a4399df3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/25 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.md:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 6 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"19 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-gcx4-mw62-g8wm","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-76p7-773f-r4q5","Warn: Project is vulnerable to: GHSA-7jxr-cg7f-gpgv","Warn: Project is vulnerable to: GHSA-xj72-wvfv-8985","Warn: Project is vulnerable to: GHSA-ch3r-j5x3-6q2m","Warn: Project is vulnerable to: GHSA-p5gc-c584-jj6v","Warn: Project is vulnerable to: GHSA-whpj-8f3w-67p5","Warn: Project is vulnerable to: GHSA-cchq-frgv-rjh5","Warn: Project is vulnerable to: GHSA-g644-9gfx-q4q4","Warn: Project is vulnerable to: GHSA-j8xg-fqg3-53r7"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T01:41:29.502Z","repository_id":44936003,"created_at":"2025-08-21T01:41:29.502Z","updated_at":"2025-08-21T01:41:29.502Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29745857,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"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":["destructure","filter","javascript","object","restructure","transform","validate"],"created_at":"2026-02-23T14:39:39.798Z","updated_at":"2026-02-23T14:39:42.593Z","avatar_url":"https://github.com/lvl99.png","language":"TypeScript","readme":"# 🔀☑️🎁 Objectro\n\n🔀 Transform and ☑️ validate 🎁 objects.\n\n## Why?\n\n- Destructure/restructure objects based on a map\n- Format specific values (sanitise, normalise, etc.)\n- Validate an object based on rules\n\nRead more in the [docs](https://lvl99.github.io/objectro/).\n\n## How?\n\n```javascript\nconst exampleObject = {\n  example1: \"This is a simple example\",\n  example2: \"Another simple example\",\n  example3: \"Another simple example to show arrays\",\n  emaxpel4: \"Pluck properties from the object and rename them\",\n  example5: \"DO SOME EXTRA FORMATTING AND RETURN AN OBJECT TO MERGE\",\n  example6: \"Ignore this property\"\n};\n\nobjectro.transform(\n  exampleObject,\n  // Pluck specific properties from an object to output\n  \"example1\",\n  [\"example2\", \"example3\"],\n  // Give a map that transforms one property name to another.\n  {\n    emaxpel4: \"example4\",\n    // You can also pass a format function to transform that value\n    // further, such as sanitising, normalising or otherwise processing\n    // the value\n    // If the format function returns an object, then that object will\n    // be merged with the output object\n    example5: (value, propName) =\u003e ({\n      [propName]: value.toLowerCase(),\n      example6: \"This is new!\"\n    })\n  }\n);\n\n// Outputs:\n// {\n//   example1: \"This is a simple example\",\n//   example2: \"Another simple example\",\n//   example3: \"Another simple example to show arrays\",\n//   example4: \"Pluck properties from the object and rename them\",\n//   example5: \"do some extra formatting and return an object to merge\",\n//   example6: \"This is new!\"\n// }\n```\n\n```javascript\nobjectro.validate(\n  {\n    name: \"Objectro\",\n    version: \"1.1.0\",\n    lastUpdated: \"2022-01-09\",\n    keywords: [\"transform\", \"validate\", \"object\", \"javascript\"],\n    randomNumber: 123,\n    nestedObject: {\n      example: true\n    }\n  },\n  {\n    // Will only return true if all nested rules match\n    all: {\n      // Will return true if at least one nested rule matches\n      any: {\n        // Will match positive if input object has either property\n        has: [\"name\", \"version\", \"nestedObject.example\"]\n      },\n      // Check if property value has one or many possible values\n      // Since this is within the `all` rule, all values must be\n      // present within the property value.\n      has: {\n        keywords: [\"transform\", \"validate\", \"javascript\"]\n      },\n      // Allows you to use validation rules to validate individual\n      // property values.\n      // Since this is within the `all` rule, all values must be\n      // present within the property value.\n      match: {\n        // Check if the property value type is a string\n        version: {\n          type: \"string\"\n        },\n        // Check if property value is greater than another value\n        randomNumber: {\n          gt: 100\n        },\n        // You can also use custom functions to validate properties\n        lastUpdated: value =\u003e new Date(value).getUTCFullYear() === 2019\n      },\n      // Negate the result of the following rules\n      not: {\n        has: {\n          // You can also reference nested object properties\n          \"nestedObject.example\": false\n        }\n      }\n    }\n  }\n);\n\n// Outputs:\n// true\n```\n\nRead more in the [docs](https://lvl99.github.io/objectro/).\n\n## Installation\n\n### Browser\n\n```html\n\u003cscript src=\"//unpkg.com/objectro@1.1.0/dist/objectro.umd.js\"\u003e\u003c/script\u003e\n\n\u003cscript\u003e\n  // window.objectro should then be available\n  console.log(objectro);\n\u003c/script\u003e\n```\n\n### ES Module\n\n```bash\n  npm i objectro\n  yarn add objectro\n```\n\nThen in your source code:\n\n```javascript\n// ES5\nconst objectro = require(\"objectro\").default;\nconst { transform, validate } = require(\"objectro\");\n\n// ES6\nimport objectro from \"objectro\";\nimport { transform, validate } from \"objectro\";\n\n// TypeScript\nimport { TransformFn } from \"objectro/lib/types\"; // if you ever need access to specific objectro type definitions\nimport { transform, validate } from \"objectro\";\n```\n\n## Development\n\nTo download external dependencies:\n\n```bash\n  npm i\n```\n\nTo run tests (using Jest):\n\n```bash\n  npm test\n```\n\n## Contribute\n\nGot cool ideas? Have questions or feedback? Found a bug? [Post an issue](https://github.com/lvl99/objectro/issues)\n\nAdded a feature? Fixed a bug? [Post a PR](https://github.com/lvl99/objectro/compare)\n\n## License\n\n[Apache 2.0](LICENSE.md)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvl99%2Fobjectro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flvl99%2Fobjectro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flvl99%2Fobjectro/lists"}