{"id":15022294,"url":"https://github.com/focusaurus/chaimel","last_synced_at":"2026-01-05T02:31:22.907Z","repository":{"id":23910992,"uuid":"27291174","full_name":"focusaurus/chaimel","owner":"focusaurus","description":"chai.js BDD assertion API using camelCase instead of dot.chaining.syntax","archived":false,"fork":false,"pushed_at":"2016-05-25T13:11:22.000Z","size":14,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-28T00:41:22.270Z","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/focusaurus.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":"2014-11-29T04:24:30.000Z","updated_at":"2017-01-06T16:22:20.000Z","dependencies_parsed_at":"2022-09-01T00:52:45.746Z","dependency_job_id":null,"html_url":"https://github.com/focusaurus/chaimel","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/focusaurus%2Fchaimel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fchaimel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fchaimel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/focusaurus%2Fchaimel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/focusaurus","download_url":"https://codeload.github.com/focusaurus/chaimel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245020314,"owners_count":20548156,"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-09-24T19:57:45.592Z","updated_at":"2026-01-05T02:31:22.834Z","avatar_url":"https://github.com/focusaurus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chaimel\n\n[![Build Status](https://semaphoreci.com/api/v1/focusaurus/chaimel/branches/master/badge.svg)](https://semaphoreci.com/focusaurus/chaimel)\n\n[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)\n\n[chai.js](http://chaijs.com/) expect BDD api wrapped with `camelCase` method names instead of `dot.chaining.style`.\n\nLets you do:\n\n- `expect(error).toHaveProperty(\"message\");` instead of\n- `expect(error).to.have.property(\"message\");`\n\n## Usage\n```\nvar expect = require(\"chaimel\");\nexpect(42).notToBeAbove(43);\n```\n\n## Why?\n\n`dot.chaining.style` is problematic for me because:\n\n- It's out of convention with the standard JavaScript built-in method names\n  - `toLowerCase`, `indexOf`, `forEach`,  `hasOwnProperty`\n- It's awkward to speak and hear. Do you say the \"dot\"s or just imply them?\n- It doesn't work well with text editor autocomplete, whereas `camelCase` does\n- I also personally find this kind of use of `Object.defineProperty` unidiomatic for the golden age of JavaScript. It's fully standard and fine, but my opinion is it fundamentally makes the language more magical and ruby-like and these are drawbacks not advantages.\n- It was pretty quick and easy to create this module, so I did\n\n## Are all the chai.expect methods supported?\n\n**No**, I left out abbreviations such as `eql`, `lt` `gt` because I hate abbreviations. Use the full words and use `deepEqual` instead of `eql`. Having both `equal` and `eql` with different semantics is error-prone, hard to remember, and confusing to read.\n\n## Browser Support\n\nThe code is designed to work in node.js or in the browser via [browserify](http://browserify.org). If you want vanilla browser support, file and issue and I can add the neccessary boilerplate.\n\n## Contributing\n\n- tests: `npm test`\n- pull requests welcome\n\n# MIT License\n\nCopyright (c) 2016 Peter Lyons LLC\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fchaimel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffocusaurus%2Fchaimel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffocusaurus%2Fchaimel/lists"}