Installations
npm install @province-city-china/country
Developer Guide
Typescript
Yes
Module System
N/A
Node Version
20.17.0
NPM Version
10.8.2
Releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
Download Statistics
Total Downloads
2,551
Last Day
3
Last Week
8
Last Month
52
Last Year
433
GitHub Statistics
2,777 Stars
165 Commits
557 Forks
29 Watching
10 Branches
9 Contributors
Bundle Size
31.07 kB
Minified
8.10 kB
Minified + Gzipped
Package Meta Information
Latest Version
8.5.8
Package Id
@province-city-china/country@8.5.8
Unpacked Size
85.72 kB
Size
23.33 kB
File Count
7
NPM Version
10.8.2
Node Version
20.17.0
Publised On
05 Sept 2024
Total Downloads
Cumulative downloads
Total Downloads
2,551
Last day
0%
3
Compared to previous day
Last week
100%
8
Compared to previous week
Last month
477.8%
52
Compared to previous month
Last year
-40.9%
433
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
1
国家和地区代码列表
1npm install @province-city-china/country --save-dev
country.json | country.min.json | country.csv
id=序号、cnname=中文简称、name=英文简称、fullname=英文全称、alpha2=两字母代码、alpha3=三字母代码、numeric=数字代码
1[ 2 { 3 "id": 1, 4 "cnname": "阿富汗", 5 "name": "Afghanistan", 6 "fullname": "the Islamic Republic of Afghanistan", 7 "alpha2": "AF", 8 "alpha3": "AFG", 9 "town": 4 10 }, 11 { 12 "id": 45, 13 "cnname": "中国", 14 "name": "China", 15 "fullname": "the People's Republic of China", 16 "alpha2": "CN", 17 "alpha3": "CHN", 18 "town": 156 19 } 20 // ... 21]
压缩数据说明 country.min.json
1id: 'i' 2cnname: 'c' 3name: 'n' 4fullname: 'f' 5alpha2: 'a2' 6alpha3: 'a3' 7numeric: 'r'
包名 | 说明 | 版本 | 大小 |
---|---|---|---|
province-city-china | 包含所有包内容 | - | |
@province-city-china/country | 国家和地区代码列表 | ||
@province-city-china/data | 总数据(省/地/县/乡) | ||
@province-city-china/province | 省级(省/直辖市/特别行政区) | ||
@province-city-china/city | 地级(城市) | ||
@province-city-china/area | 县级(区县) | ||
@province-city-china/town | 乡级(乡镇/街) | ||
@province-city-china/level | 总数据(省/地/县/乡)层级数据 | ||
@province-city-china/utils | 提供使用数据方法 | ||
@province-city-china/types | 类型文件 | - | |
@province-city-china/district-code | 国内长途电话区号 | - |
![Empty State](/_next/static/media/empty.e5fae2e5.png)
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
packaging workflow detected
Details
- Info: Project packages its releases by way of GitHub Actions.: .github/workflows/ci.yml:8
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: no topLevel permission defined: .github/workflows/ci.yml:1
- Info: no jobLevel write permissions found
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:45: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:54: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:62: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci.yml:70: update your workflow using https://app.stepsecurity.io/secureworkflow/uiwjs/province-city-china/ci.yml/master?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/ci.yml:22
- Info: 0 out of 2 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 7 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
15 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-wf5p-g6vw-rhxx
- Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg
- Warn: Project is vulnerable to: GHSA-h452-7996-h45h
- Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275
- Warn: Project is vulnerable to: GHSA-ghr5-ch3p-vcr6
- Warn: Project is vulnerable to: GHSA-jchw-25xp-jwwc
- Warn: Project is vulnerable to: GHSA-cxjh-pqwp-8mfp
- Warn: Project is vulnerable to: GHSA-rc47-6667-2j5j
- Warn: Project is vulnerable to: GHSA-78xj-cgh5-2h22
- Warn: Project is vulnerable to: GHSA-2p57-rm9w-gvfp
- Warn: Project is vulnerable to: GHSA-9c47-m6qq-7p4h
- Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv
- Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp
- Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw
- Warn: Project is vulnerable to: GHSA-f5x3-32g6-xq36
Score
4.1
/10
Last Scanned on 2025-01-20
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More