{"id":20940526,"url":"https://github.com/showrin/anagram_checker","last_synced_at":"2025-12-29T01:16:29.839Z","repository":{"id":57160041,"uuid":"287952237","full_name":"Showrin/anagram_checker","owner":"Showrin","description":"A simple program to check whether two strings are anagram or not.","archived":false,"fork":false,"pushed_at":"2020-08-25T13:42:59.000Z","size":164,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T14:50:03.214Z","etag":null,"topics":["algorithm","anagram-checker","angram","javascript","testing"],"latest_commit_sha":null,"homepage":"https://epic-curran-723523.netlify.app/","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/Showrin.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-08-16T13:47:45.000Z","updated_at":"2023-03-09T02:02:48.000Z","dependencies_parsed_at":"2022-09-09T07:30:34.694Z","dependency_job_id":null,"html_url":"https://github.com/Showrin/anagram_checker","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Showrin%2Fanagram_checker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Showrin%2Fanagram_checker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Showrin%2Fanagram_checker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Showrin%2Fanagram_checker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Showrin","download_url":"https://codeload.github.com/Showrin/anagram_checker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243332455,"owners_count":20274485,"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":["algorithm","anagram-checker","angram","javascript","testing"],"created_at":"2024-11-18T23:10:50.697Z","updated_at":"2025-12-29T01:16:29.797Z","avatar_url":"https://github.com/Showrin.png","language":"JavaScript","readme":"# Anagram Checker\n\nIt's a simple program to check whether two strings are anagram or not.\n\n\u003cbr/\u003e\n\n## Installation\n\nRun the following command to install this package in your package.\n\n```\nyarn add @showrin/anagram_checker\n```\n\n\u003cbr/\u003e\n\nIf you are using npm, then run the following command.\n\n```\nnpm install @showrin/anagram_checker\n```\n\n\u003cbr/\u003e\n\n## Demo\n\nGo to the link: [https://epic-curran-723523.netlify.app/](https://epic-curran-723523.netlify.app/)\n\n\u003cbr/\u003e\n\n## Project Setup\n\nClone the repo first. To do so, go to the directory where you want to keep this repo. Then open the terminal from here and run the following command.\n\n```\n$ git clone git@github.com:Showrin/anagram_checker.git\n```\n\n\u003cbr/\u003e\n\nThen navigate to the repository using this command.\n\n```\n$ cd anagram_checker\n```\n\n\u003cbr/\u003e\n\nAfter cloning, if you are using **`yarn`**, install the required modules by running the following command.\n\n```\n$ yarn\n```\n\n\u003cbr/\u003e\n\nOr use the following command if you are using **`npm`**.\n\n```\n$ npm install\n```\n\n\u003cbr/\u003e\n\nNow open the **`index.html`** file with any browser and you will get the following UI. Here you can give two strings and pressing enter or pressing the button, you can check whether the given strings are anagram or not.\n\n![Anagram Checker UI](https://i.imgur.com/ryHRyGD.png)\n\n\u003cbr/\u003e\n\n## Dev Dependencies\n\nThis program has following development dependencies.\n\n| Module Name                              | Version | Why it's used                                       |\n| ---------------------------------------- | ------- | --------------------------------------------------- |\n| @babel/plugin-transform-modules-commonjs | ^7.10.4 | It's being used for using ES6 import-export in node |\n| jest                                     | ^26.4.1 | It's being used for writing and running tests       |\n\n\u003cbr/\u003e\n\n## Algorithm Explanation\n\n- First convert all charaters to lowercase.\n- Then remove all the space characters. (To do so, split strings by the space characters and join them. Now all the spaces have gone.)\n\n- After that sort both strings.\n- Then compare these two sorted strings.\n- If they are anagram, they must be equal otherwise they are not anagram.\n\n\u003cbr/\u003e\n\n## Write and Run Tests\n\nYou can add your tests in **`./modules/anagram_checker.test.js`** this file like the following:\n\n```\ntest(\"Should not be anagram\", () =\u003e {\n  expect(anagramChecker(\"eat\", \"tar\")).toBe(false);\n});\n\ntest(\"Should not be anagram when there is an empty string\", () =\u003e {\n  expect(anagramChecker(\"lamp\", \"\")).toBe(false);\n});\n```\n\n\u003cbr/\u003e\n\nAfter that you can run tests using this command in the console.\n\n```\nyarn test\n```\n\n\u003cbr/\u003e\n\nOr use the following if you are using npm.\n\n```\nnpm test\n```\n\n\u003cbr/\u003e\n\n## Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\nAnd your changes will be visible [https://epic-curran-723523.netlify.app/](https://epic-curran-723523.netlify.app/) here after getting merged into the master.\n\n\u003cbr/\u003e\n\n## License\n\n[MIT](https://choosealicense.com/licenses/mit/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowrin%2Fanagram_checker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshowrin%2Fanagram_checker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshowrin%2Fanagram_checker/lists"}