{"id":15184568,"url":"https://github.com/id1945/ngx-shift-jis","last_synced_at":"2026-01-30T00:04:21.797Z","repository":{"id":57147514,"uuid":"405309359","full_name":"id1945/ngx-shift-jis","owner":"id1945","description":"This library is built for the purpose of loading files in \"shift jis\" format. ","archived":false,"fork":false,"pushed_at":"2023-06-29T09:33:59.000Z","size":181,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-24T08:56:07.548Z","etag":null,"topics":["angular","angular2","angular4","encoding-japanese","ngx","ngx-shift-jis","shift-jis"],"latest_commit_sha":null,"homepage":"https://id1945.github.io/ngx-shift-jis","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/id1945.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":"2021-09-11T07:06:27.000Z","updated_at":"2023-06-29T04:56:17.000Z","dependencies_parsed_at":"2025-01-07T14:11:53.069Z","dependency_job_id":"d0cd687e-6fbe-4f16-a5e3-4916c8e12bc0","html_url":"https://github.com/id1945/ngx-shift-jis","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"b59e40afc3e25d9bb4c99537c48e4b7b97f464eb"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/id1945/ngx-shift-jis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fngx-shift-jis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fngx-shift-jis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fngx-shift-jis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fngx-shift-jis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/id1945","download_url":"https://codeload.github.com/id1945/ngx-shift-jis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/id1945%2Fngx-shift-jis/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28891319,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-29T21:06:44.224Z","status":"ssl_error","status_checked_at":"2026-01-29T21:06:42.160Z","response_time":59,"last_error":"SSL_read: 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":["angular","angular2","angular4","encoding-japanese","ngx","ngx-shift-jis","shift-jis"],"created_at":"2024-09-27T17:04:56.883Z","updated_at":"2026-01-30T00:04:21.782Z","avatar_url":"https://github.com/id1945.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# ngx-shift-jis\n\nThis library is built for the purpose of loading files in \"shift jis\" format.\\\nThis is the [demo](https://stackblitz.com/edit/angular-ngx-shift-jis?file=src/app/app.component.ts).\n\n![Logo](https://raw.githubusercontent.com/id1945/ngx-shift-jis/master/ngx-shift-jis.png)\n\n## Installation\nInstall `ngx-shift-jis` from `npm`:\n```bash\nnpm install ngx-shift-jis@\u003cversion\u003e --save\n```\n\nAdd wanted package to NgModule imports:\n```typescript\nimport { NgxShiftJisModule } from 'ngx-shift-jis';\n\n@NgModule({\n    imports: [\n        NgxShiftJisModule,\n    ]\n})\n```\n\nAdd component to your page:\n```typescript\nimport { NgxShiftJisService } from 'ngx-shift-jis';\n\nexport class AppComponent {\n\n  constructor(public shiftJis: NgxShiftJisService) { }\n\n  public download() {\n    const content = '説明会内容 1,あああ,いいい 2,ううう,えええ';\n    const fileName = 'demo-Shift-JIS.csv';\n    this.shiftJis.downloadShiftJIS(content, fileName).subscribe(console.log);\n  }\n}\n```\n\n```html\n\u003cbutton (click)=\"download()\"\u003eDownload\u003c/button\u003e\n```\n\n\u003cdetails\u003e\u003csummary\u003e\u003cb\u003eEncoding :hammer_and_wrench:\u003c/b\u003e\u003c/summary\u003e\n\n```typescript\npublic download() {\n  const content = '説明会内容 1,あああ,いいい 2,ううう,えええ';\n  const fileName = 'demo-Shift-JIS.csv';\n  const convert = (encoding) =\u003e {\n    const num_array = encoding.stringToCode(content);\n    const sjis_array = encoding.convert(num_array, \"SJIS\", \"UTF8\");\n    return sjis_array;\n  }\n  this.shiftJis.downloadShiftJIS(content, fileName, convert).subscribe(console.log);\n}\n// convert(data: IntArrayType, to: Encoding, from?: Encoding)\n// Encoding: 'UTF32' | 'UTF16' | 'UTF16BE' | 'UTF16LE' | 'BINARY' | 'ASCII' | 'JIS' | 'UTF8' | 'EUCJP' | 'SJIS' | 'UNICODE' | 'AUTO'\n```\n\u003c/details\u003e\n\n\n#### Support download file formats\n\n|  File format  |\n| ------------- |\n| text          | \n| csv           |\n| word          |\n| excel         |\n| powerpoint    |\n\n#### Support versions\n  \n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth colspan=\"2\"\u003eSupport versions\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eAngular 16\u003c/td\u003e\n    \u003ctd\u003e1.1.1\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eAngular 6\u003c/td\u003e\n    \u003ctd\u003e1.1.0\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n#### Author Information\n  \n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth colspan=\"2\"\u003eAuthor Information\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eAuthor\u003c/td\u003e\n    \u003ctd\u003eDaiDH\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003ePhone\u003c/td\u003e\n    \u003ctd\u003e+84845882882\u003c/td\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003eCountry\u003c/td\u003e\n    \u003ctd\u003eVietnam\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n#### If you want donate for me!\n\n\u003ctable\u003e\n  \u003ctr\u003e\n    \u003cth\u003eBitcoin\u003c/th\u003e\n  \u003c/tr\u003e\n  \u003ctr\u003e\n    \u003ctd\u003e\u003cimg src=\"https://raw.githubusercontent.com/id1945/id1945/master/donate-bitcoin.png\" width=\"182px\"\u003e\u003c/td\u003e\n  \u003c/tr\u003e\n\u003c/table\u003e\n\n![Vietnam](https://raw.githubusercontent.com/id1945/id1945/master/vietnam.gif)\n\n[MIT License](https://github.com/id1945/ngx-shift-jis/blob/master/LICENSE) Copyright (c) 2021 DaiDH","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fid1945%2Fngx-shift-jis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fid1945%2Fngx-shift-jis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fid1945%2Fngx-shift-jis/lists"}