{"id":27696740,"url":"https://github.com/open-data-plan/gbt2260","last_synced_at":"2025-06-10T16:05:05.009Z","repository":{"id":34292722,"uuid":"174912718","full_name":"open-data-plan/gbt2260","owner":"open-data-plan","description":"🇨🇳中华人民共和国国家标准 GB/T 2260 行政区划代码","archived":false,"fork":false,"pushed_at":"2024-09-20T14:41:08.000Z","size":2976,"stargazers_count":11,"open_issues_count":7,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-15T02:56:01.902Z","etag":null,"topics":[],"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/open-data-plan.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":"2019-03-11T02:39:26.000Z","updated_at":"2024-09-20T14:41:11.000Z","dependencies_parsed_at":"2025-04-25T15:12:53.456Z","dependency_job_id":"56d44c8f-2cda-4a51-ab0a-e514cd9dcbc3","html_url":"https://github.com/open-data-plan/gbt2260","commit_stats":null,"previous_names":["kagawagao/gbt2260"],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fgbt2260","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fgbt2260/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fgbt2260/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fgbt2260/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/open-data-plan","download_url":"https://codeload.github.com/open-data-plan/gbt2260/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/open-data-plan%2Fgbt2260/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":258431685,"owners_count":22699939,"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":[],"created_at":"2025-04-25T15:12:46.894Z","updated_at":"2025-06-10T16:05:04.971Z","avatar_url":"https://github.com/open-data-plan.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GBT2260\n\n[![gbt/2260](https://img.shields.io/static/v1?label=GB/T\u0026message=2260\u0026color=brightgreen)](http://www.gb688.cn/bzgk/gb/newGbInfo?hcno=C9C488FD717AFDCD52157F41C3302C6D)\n[![node](https://img.shields.io/node/v/@opd/gbt2260.svg)](https://www.npmjs.com/package/@opd/gbt2260)\n[![npm](https://img.shields.io/npm/v/@opd/gbt2260.svg)](https://www.npmjs.com/package/@opd/gbt2260)\n[![license](https://img.shields.io/npm/l/@opd/gbt2260.svg)](https://github.com/open-data-plan/gbt2260/blob/master/LICENSE)\n[![Build Status](https://travis-ci.org/open-data-plan/gbt2260.svg?branch=master)](https://travis-ci.org/open-data-plan/gbt2260)\n[![Standard - JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](http://standardjs.com/)\n[![Coverage Status](https://coveralls.io/repos/github/open-data-plan/gbt2260/badge.svg?branch=master)](https://coveralls.io/github/open-data-plan/gbt2260?branch=master)\n[![Known Vulnerabilities](https://snyk.io/test/github/open-data-plan/gbt2260/badge.svg?targetFile=package.json)](https://snyk.io/test/github/open-data-plan/gbt2260?targetFile=package.json)\n\n\u003e latest Chinese administrative divisions from [`MCA`](https://www.mca.gov.cn/n156/n2679/index.html), and based on [`gb2260`](https://github.com/cn/GB2260.js)\n\n## Install\n\n```bash\nnpm i @opd/gbt2260\n```\n\n## Use\n\n```js\nconst gbt2260 = require('@opd/gbt2260')\n```\n\n### API\n\n- `gbt2260.provinces()`: 获取省级行政区划\n- `gbt2260.prefectures()`: 获取市级行政区划，若为直辖市，则返回辖区\n- `gbt2260.counties()`: 获取县级行政区划\n\n## Crawl Data\n\n```bash\nnpm run generate\n```\n\n### Difference with [`gb2260`](https://github.com/cn/GB2260.js)\n\n1. `gb2260` looks like a dead project, no one in maintain\n2. rewrite `prefectures()`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-data-plan%2Fgbt2260","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopen-data-plan%2Fgbt2260","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopen-data-plan%2Fgbt2260/lists"}