{"id":33185848,"url":"https://github.com/aethiopicuschan/nocjk","last_synced_at":"2026-01-12T12:03:26.401Z","repository":{"id":293397878,"uuid":"983911110","full_name":"aethiopicuschan/nocjk","owner":"aethiopicuschan","description":"Detect CJK text","archived":false,"fork":false,"pushed_at":"2025-06-29T04:20:34.000Z","size":17,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-19T22:14:43.749Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/aethiopicuschan.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,"zenodo":null}},"created_at":"2025-05-15T05:31:59.000Z","updated_at":"2025-06-29T04:20:37.000Z","dependencies_parsed_at":"2025-05-15T06:40:42.405Z","dependency_job_id":null,"html_url":"https://github.com/aethiopicuschan/nocjk","commit_stats":null,"previous_names":["aethiopicuschan/nocjk"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aethiopicuschan/nocjk","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aethiopicuschan%2Fnocjk","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aethiopicuschan%2Fnocjk/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aethiopicuschan%2Fnocjk/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aethiopicuschan%2Fnocjk/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aethiopicuschan","download_url":"https://codeload.github.com/aethiopicuschan/nocjk/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aethiopicuschan%2Fnocjk/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28338974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T10:58:46.209Z","status":"ssl_error","status_checked_at":"2026-01-12T10:58:42.742Z","response_time":98,"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":[],"created_at":"2025-11-16T05:00:20.103Z","updated_at":"2026-01-12T12:03:26.395Z","avatar_url":"https://github.com/aethiopicuschan.png","language":"Go","funding_links":[],"categories":["\u003ca name=\"text-search\"\u003e\u003c/a\u003eText search (alternatives to grep)"],"sub_categories":[],"readme":"# nocjk\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-brightgreen?style=flat-square)](/LICENSE)\n[![Go Reference](https://pkg.go.dev/badge/github.com/aethiopicuschan/nocjk.svg)](https://pkg.go.dev/github.com/aethiopicuschan/nocjk)\n[![Go Report Card](https://goreportcard.com/badge/github.com/aethiopicuschan/nocjk)](https://goreportcard.com/report/github.com/aethiopicuschan/nocjk)\n[![CI](https://github.com/aethiopicuschan/nocjk/actions/workflows/ci.yaml/badge.svg)](https://github.com/aethiopicuschan/nocjk/actions/workflows/ci.yaml)\n[![GitHub Actions](https://img.shields.io/badge/GitHub%20Actions-Ready-blue?logo=github-actions)](https://github.com/features/actions)\n\n`nocjk` is a simple CLI tool and library to detect CJK (Chinese, Japanese, and Korean) text.\n\n## Installation\n\n### As a CLI tool:\n\n```sh\ngo install github.com/aethiopicuschan/nocjk/cmd/nocjk@latest\nnocjk .\n```\n\nWhen CJK text is detected, the CLI exits with error code 1.\n\n#### Ignore\n\nIf you want to ignore the detection of a specific language, you can use the following option.\n\n- `--ignore-chinese` to ignore Chinese text\n- `--ignore-japanese` to ignore Japanese text\n- `--ignore-korean` to ignore Korean text\n\nYou can also define ignore rules using a `.nocjkignore` file in your project root. The format of `.nocjkignore` is fully compatible with `.gitignore`. Files and directories matching the patterns in this file will be skipped during CJK text detection. This is especially useful when you want to exclude certain generated files or third-party code from being analyzed.\n\n### As a library:\n\n```sh\ngo get -u github.com/aethiopicuschan/nocjk/pkg/nocjk\n```\n\n`nocjk` provides `FindChineseLines`, `FindJapaneseLines`, `FindKoreanLines` and `FindCJKLines` functions to detect CJK text in a string. More information can be found in the [documentation](https://pkg.go.dev/github.com/aethiopicuschan/nocjk).\n\n## Usage with GitHub Actions\n\nYou can easily integrate `nocjk` into your GitHub Actions workflows to automatically detect CJK text during code changes. Here is a basic example:\n\n```yaml\njobs:\n  check-cjk:\n    runs-on: ubuntu-latest\n\n    steps:\n      - uses: actions/checkout@v4\n      - name: Detect CJK text\n        uses: aethiopicuschan/nocjk/actions/nocjk-action@v1.2.0\n        with:\n          ignore_chinese: false\n          ignore_japanese: false\n          ignore_korean: false\n          args: \".\"\n```\n\nSee [nocjk-action on GitHub](https://github.com/aethiopicuschan/nocjk/tree/main/actions/nocjk-action) for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faethiopicuschan%2Fnocjk","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faethiopicuschan%2Fnocjk","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faethiopicuschan%2Fnocjk/lists"}