{"id":15537577,"url":"https://github.com/nullvoxpopuli/active-inflector","last_synced_at":"2025-04-23T15:23:13.898Z","repository":{"id":189020478,"uuid":"679882832","full_name":"NullVoxPopuli/active-inflector","owner":"NullVoxPopuli","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-13T23:25:06.000Z","size":798,"stargazers_count":5,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-14T00:34:54.728Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/NullVoxPopuli.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-17T20:46:33.000Z","updated_at":"2025-03-23T21:15:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"5fb85475-0588-4d05-984f-7288ea25f310","html_url":"https://github.com/NullVoxPopuli/active-inflector","commit_stats":null,"previous_names":["nullvoxpopuli/active-inflector"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Factive-inflector","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Factive-inflector/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Factive-inflector/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NullVoxPopuli%2Factive-inflector/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NullVoxPopuli","download_url":"https://codeload.github.com/NullVoxPopuli/active-inflector/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250458082,"owners_count":21433794,"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-10-02T11:58:13.302Z","updated_at":"2025-04-23T15:23:13.881Z","avatar_url":"https://github.com/NullVoxPopuli.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Active Inflector [![CI](https://github.com/NullVoxPopuli/active-inflector/workflows/CI/badge.svg)](https://github.com/NullVoxPopuli/active-inflector/actions/) ![size](https://deno.bundlejs.com/badge?q=active-inflector\u0026treeshake=[*]\u0026config={%22compression%22:%22brotli%22,%22esbuild%22:{%22external%22:[%22capital-case%22]}})\n\nActive Inflector is a library for inflecting words between plural and singular forms. Active Inflector aims to be compatible with [ActiveSupport::Inflector](http://api.rubyonrails.org/classes/ActiveSupport/Inflector.html) from Ruby on Rails, including the ability to add your own inflections in your app.\n\n## Compatibility\n\nRequirements:\n\n- ESM\n- [Private Fields](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Classes/Public_class_fields#browser_compatibility)\n\nAs always, a consuming project can run a transpiler over dependencies.\n\n## Installation\n\n```\npnpm add active-inflector\n```\n\n## Usage\n\nAll methods are always available from the `active-inflector` module:\n\n```javascript\nimport { Inflector, singularize, pluralize } from \"active-inflector\";\n\nInflector.inflector.singularize(\"tacos\"); // taco\nInflector.inflector.pluralize(\"taco\"); // tacos\n\nsingularize(\"tacos\"); // taco\npluralize(\"taco\"); // tacos\n\npluralize(2, \"taco\"); // 2 tacos\npluralize(2, \"tacos\", { withoutCount: true }); // tacos\n```\n\n### Custom Rules\n\nIf necessary you can setup special inflection rules for your application:\n\n```javascript\nimport { Inflector } from \"active-inflector\";\n\nInflector.inflector.irregular(\"person\", \"people\");\nInflector.inflector.uncountable(\"sheep\");\n```\n\n## Contributing\n\nSee the [Contributing](CONTRIBUTING.md) guide for details.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Factive-inflector","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullvoxpopuli%2Factive-inflector","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullvoxpopuli%2Factive-inflector/lists"}