{"id":16641714,"url":"https://github.com/maxim-mazurok/ez-vcard-ts-java-types","last_synced_at":"2026-04-23T06:33:31.794Z","repository":{"id":101137409,"uuid":"286470152","full_name":"Maxim-Mazurok/ez-vcard-ts-java-types","owner":"Maxim-Mazurok","description":"Generate Ezvcard type definitions for node-java with TypeScript","archived":false,"fork":false,"pushed_at":"2020-08-11T04:11:09.000Z","size":1379,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-27T14:31:15.824Z","etag":null,"topics":["ezvcard","node-java","nodejs","type-definitions","typescript","vcf"],"latest_commit_sha":null,"homepage":"","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/Maxim-Mazurok.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-08-10T12:33:57.000Z","updated_at":"2020-09-10T04:01:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb3d8503-0df7-44fa-afac-f4a6b71f0907","html_url":"https://github.com/Maxim-Mazurok/ez-vcard-ts-java-types","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Maxim-Mazurok/ez-vcard-ts-java-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxim-Mazurok%2Fez-vcard-ts-java-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxim-Mazurok%2Fez-vcard-ts-java-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxim-Mazurok%2Fez-vcard-ts-java-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxim-Mazurok%2Fez-vcard-ts-java-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Maxim-Mazurok","download_url":"https://codeload.github.com/Maxim-Mazurok/ez-vcard-ts-java-types/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Maxim-Mazurok%2Fez-vcard-ts-java-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32169657,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-23T02:19:40.750Z","status":"ssl_error","status_checked_at":"2026-04-23T02:17:55.737Z","response_time":53,"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":["ezvcard","node-java","nodejs","type-definitions","typescript","vcf"],"created_at":"2024-10-12T07:47:36.617Z","updated_at":"2026-04-23T06:33:31.778Z","avatar_url":"https://github.com/Maxim-Mazurok.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Generate Ezvcard type definitions for node-java with TypeScript\n\n### Instructions for Windows 10:\n\n1. Install [JDK 14](https://www.oracle.com/java/technologies/javase-jdk14-downloads.html)\n1. Install [Python 2](https://www.python.org/downloads/windows/)\n1. Use `node` `v6.17.1` (`ts-java` won't build on later versions)\n1. Add this to `package.json`:\n\n   ```json\n   {\n     \"scripts\": {\n       \"preinstall\": \"npm run npm-force-resolutions\",\n       \"npm-force-resolutions\": \"npm-force-resolutions\"\n     },\n     \"resolutions\": {\n       \"java\": \"github:joeferner/node-java#master\",\n       \"find-java-home\": \"1.1.0\"\n     }\n   }\n   ```\n\n1. Remove `node_modules` and `package-lock.json` (just in case)\n1. Run `npm i npm --save` to upgrade to `npm` which understands `package-lock.json`\n1. Run `npm i --ignore-scripts` to generate `package-lock.json`\n1. Remove `node_modules/java` and `node_modules/ts-java` (to force reinstallation and re-running of build scripts)\n1. Run `npm i --python=C:\\Python27\\python.exe`\n1. In `node_modules\\ts-java\\lib\\ts-java-main.js` remove `classpath.push(rtJarPath);` line. Instead, we'll download and add it to `package.json`. Make sure that it's a full and not stripped down version, use archive manager to look inside of jar, there should be a lot of folders. Or, grab one from this repo.\n\n   ```json\n   {\n     \"ts-java\": {\n       \"classpath\": \"rt.jar\"\n     }\n   }\n   ```\n\n1. Run `node node_modules\\ts-java\\bin\\ts-java.js` and don't wait, go to the next step\n1. Don't wait for `ts-java.js` to finish, it will never finish for some reason. Instead, look for `tsJavaModule.ts` file to be created or updated. Once it's there - terminate script.\n1. ???\n1. Profit!\n\n### Usage with node-java instructions:\n\n1. See [`usage`](./usage/) folder\n1. Make sure to replace\n\n   ```js\n   var fullJarPath: string = path.join(__dirname, \"\", jarPath);\n   _java.classpath.push(fullJarPath);\n   ```\n\n   with\n\n   ```js\n   _java.classpath.push(jarPath);\n   ```\n\n   in case if you're using absolute paths to your `jar`s.\n\n1. Don't forget to switch back to the latest NodeJS version (tested on `v14.7.0`) since we don't have to deal with outdated `ts-java` sources anymore\n1. Install deps from [`package.json`](./usage/package.json)\n1. Run `npx ts-node .\\index.ts`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxim-mazurok%2Fez-vcard-ts-java-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaxim-mazurok%2Fez-vcard-ts-java-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaxim-mazurok%2Fez-vcard-ts-java-types/lists"}