{"id":19960914,"url":"https://github.com/jeka-kiselyov/mdict","last_synced_at":"2025-05-03T21:31:29.630Z","repository":{"id":57293562,"uuid":"83215018","full_name":"jeka-kiselyov/mdict","owner":"jeka-kiselyov","description":"node.js mdict (*.mdx, *.mdd) file reader","archived":false,"fork":false,"pushed_at":"2020-12-17T16:09:01.000Z","size":25,"stargazers_count":56,"open_issues_count":0,"forks_count":16,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-05T11:04:51.392Z","etag":null,"topics":["binary","dictionaries","dictionary","languages","mdx","node","node-module","nodejs"],"latest_commit_sha":null,"homepage":"","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/jeka-kiselyov.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":"2017-02-26T14:31:28.000Z","updated_at":"2025-03-30T00:43:28.000Z","dependencies_parsed_at":"2022-09-01T08:42:05.233Z","dependency_job_id":null,"html_url":"https://github.com/jeka-kiselyov/mdict","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeka-kiselyov%2Fmdict","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeka-kiselyov%2Fmdict/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeka-kiselyov%2Fmdict/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeka-kiselyov%2Fmdict/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeka-kiselyov","download_url":"https://codeload.github.com/jeka-kiselyov/mdict/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252259305,"owners_count":21719659,"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":["binary","dictionaries","dictionary","languages","mdx","node","node-module","nodejs"],"created_at":"2024-11-13T02:05:45.455Z","updated_at":"2025-05-03T21:31:25.595Z","avatar_url":"https://github.com/jeka-kiselyov.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# node mdict\n\n\u003e This project is out of date and there're no plans to update it. Please use [terasum/js-mdict](https://github.com/terasum/js-mdict) for your projects.\n\nnode.js mdict (*.mdx, *.mdd) file reader\n\nRude refactoring of https://github.com/fengdh/mdict-js to make it work on nodejs by [Jeka Kiselyov](https://github.com/jeka-kiselyov).\nDone enough to make it work for my project(with predefined dictionaries). It's tested with few .mdx files only, so there may be some bugs with other dictionaries. Please check and please feel free to submit pull requests with optimizations, unit tests etc.\n\nReleased under terms of the MIT License, as original library.\n\nInstallation:\n```bash\nnpm install mdict\n```\n\nUsage:\n\n```javascript\nvar mdict = require('mdict');\n\nmdict.dictionary('dictionary.mdx').then(function(dictionary){\n\t\t//// dictionary is loaded\n\t\tdictionary.search({\n\t\t\tphrase: 'دهخدا*', /// '*' and '?' supported\n\t\t\tmax: 10\t          /// maximum results\n \t\t}).then(function(foundWords){\n\t\t\tconsole.log('Found words:');\n\t\t\tconsole.log(foundWords);      /// foundWords is array\n\n\t\t\tvar word = ''+foundWords[0];\n\t\t\tconsole.log('Loading definitions for: '+word);\n\t\t\treturn dictionary.lookup(word); /// typeof word === string\n\t\t}).then(function(definitions){\n\t\t\tconsole.log('definitions:');     /// definition is array\n\t\t\tconsole.log(definitions);\n\t\t});\n\n\t});\n```\n\nThis is [on GitHub](https://github.com/jeka-kiselyov/mdict).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeka-kiselyov%2Fmdict","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeka-kiselyov%2Fmdict","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeka-kiselyov%2Fmdict/lists"}