{"id":18396732,"url":"https://github.com/igorskyflyer/npm-jmap","last_synced_at":"2026-02-06T04:02:58.774Z","repository":{"id":246105022,"uuid":"820113831","full_name":"igorskyflyer/npm-jmap","owner":"igorskyflyer","description":"🕶️ Reads a JSON file into a Map. 🌻","archived":false,"fork":false,"pushed_at":"2025-08-27T19:58:15.000Z","size":146,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-28T20:48:34.956Z","etag":null,"topics":["back-end","es6","file","file-system","igorskyflyer","javascript","js","json","map","npm","read","typescript","utility"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@igorskyflyer/jmap","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/igorskyflyer.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"ko_fi":"igorskyflyer"}},"created_at":"2024-06-25T20:38:21.000Z","updated_at":"2025-08-27T19:58:19.000Z","dependencies_parsed_at":"2024-06-25T22:13:03.334Z","dependency_job_id":"3be83ed3-1794-45d9-928e-96dc08be920f","html_url":"https://github.com/igorskyflyer/npm-jmap","commit_stats":null,"previous_names":["igorskyflyer/npm-jmap"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/igorskyflyer/npm-jmap","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-jmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-jmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-jmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-jmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/igorskyflyer","download_url":"https://codeload.github.com/igorskyflyer/npm-jmap/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/igorskyflyer%2Fnpm-jmap/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29149594,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-06T02:39:25.012Z","status":"ssl_error","status_checked_at":"2026-02-06T02:37:22.784Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["back-end","es6","file","file-system","igorskyflyer","javascript","js","json","map","npm","read","typescript","utility"],"created_at":"2024-11-06T02:14:41.298Z","updated_at":"2026-02-06T04:02:58.738Z","avatar_url":"https://github.com/igorskyflyer.png","language":"TypeScript","funding_links":["https://ko-fi.com/igorskyflyer"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"https://raw.githubusercontent.com/igorskyflyer/npm-jmap/main/media/jmap.png\" alt=\"Icon of jMap\" width=\"256\" height=\"256\"\u003e\n  \u003ch1\u003ejMap\u003c/h1\u003e\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003ch4 align=\"center\"\u003e🕶️ Reads a JSON file into a Map. 🌻\u003c/h4\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 📃 Table of Contents\n\n- [Features](#-features)\n- [Usage](#-usage)\n- [API](#-api)\n- [Changelog](#-changelog)\n- [Support](#-support)\n- [License](#-license)\n- [Related](#-related)\n- [Author](#-author)\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🤖 Features\n\n- 📂 Load any valid JSON file into memory instantly\n- 🗺️ Get all properties as a ready‑to‑use Map\n- 🎯 Access values quickly by key lookup\n- 🧩 Works with any JSON structure, flat or nested\n- 🚫 Clear errors if file is missing or invalid\n- ⚡ Fast, synchronous execution for small to medium files\n- 🔍 Retains exact JSON keys and values with no transformation\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🕵🏼 Usage\n\nInstall it by executing any of the following, depending on your preferred package manager:\n\n```bash\npnpm add @igorskyflyer/jmap\n```\n\n```bash\nyarn add @igorskyflyer/jmap\n```\n\n```bash\nnpm i @igorskyflyer/jmap\n```\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🤹🏼 API\n\n```jMap(path: string): Map\u003cstring, unknown\u003e```\n\nReads a JSON file into a Map.\n\n\u003cbr\u003e\n\n```path: string``` - path to the JSON file, **required**.  \n\n\u003cbr\u003e\n\n***Throws*** an exception if the file cannot be read or there is an error while parsing the JSON file.  \n\n Returns `Map` with all JSON properties and values.\n\n\u003cbr\u003e\n\n`demo.ts`\n\n```ts\nimport { jMap } from '@igorskyflyer/jmap'\n\nconst sample: Map\u003cstring, unknown\u003e = jMap('./test/data/sample.json')\n\nconsole.log(sample.get('glossary').title) // 'example glossary'\n\n```\n\n\u003e The used sample JSON file is located here, [JSON sample](https://github.com/igorskyflyer/npm-jmap/blob/main/test/data/sample.json).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 📝 Changelog\n\n📑 The changelog is available here, [CHANGELOG.md](https://github.com/igorskyflyer/npm-jmap/blob/main/CHANGELOG.md).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🪪 License\n\nLicensed under the MIT license which is available here, [MIT license](https://github.com/igorskyflyer/npm-jmap/blob/main/LICENSE.txt).\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 💖 Support\n\n\u003cdiv align=\"center\"\u003e\n  I work hard for every project, including this one and your support means a lot to me!\n  \u003cbr\u003e\n  Consider buying me a coffee. ☕\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003ca href=\"https://ko-fi.com/igorskyflyer\" target=\"_blank\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/igorskyflyer/igorskyflyer/main/assets/ko-fi.png\" alt=\"Donate to igorskyflyer\" width=\"180\" height=\"46\"\u003e\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n  \u003cem\u003eThank you for supporting my efforts!\u003c/em\u003e 🙏😊\n\u003c/div\u003e\n\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 🧬 Related\n\n[@igorskyflyer/zep](https://www.npmjs.com/package/@igorskyflyer/zep)\n\n\u003e _🧠 Zep is a zero-dependency, efficient debounce module. ⏰_\n\n[@igorskyflyer/pathexists](https://www.npmjs.com/package/@igorskyflyer/pathexists)\n\n\u003e _🧲 Provides ways of properly checking if a path exists inside a given array of files/directories both on Windows and UNIX-like operating systems. 🗺_\n\n[@igorskyflyer/adblock-filter-counter](https://www.npmjs.com/package/@igorskyflyer/adblock-filter-counter) \n\n\u003e _🐲 A dead simple npm module that counts Adblock filter rules.🦘_\n\n[@igorskyflyer/mp3size](https://www.npmjs.com/package/@igorskyflyer/mp3size)\n\n\u003e _🧮 Calculates an estimated file size of Mp3 files. 🎶_\n\n[@igorskyflyer/odin](https://www.npmjs.com/package/@igorskyflyer/odin)\n\n\u003e _🔱 Odin is an Object wrapper that allows you to create objects and set their attributes - all at once! 🔺_\n\n\u003cbr\u003e\n\u003cbr\u003e\n\u003cbr\u003e\n\n## 👨🏻‍💻 Author\nCreated by **Igor Dimitrijević** ([*@igorskyflyer*](https://github.com/igorskyflyer/)).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorskyflyer%2Fnpm-jmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Figorskyflyer%2Fnpm-jmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Figorskyflyer%2Fnpm-jmap/lists"}