
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
The latest GB/T 2260 codes. Read the GB2260 Specification.
Install with npm:
$ npm install gb2260 --save
var gb2260 = require('gb2260');
// register revision data
gb2260.register('201410', require('gb2260/lib/201410'))
var gb = new gb2260.GB2260(revision);
Interface for GB2260.
Get division for the given code.
var division = gb.get("110105")
// <GB/T 2260-201410> 110105 北京市 市辖区 朝阳区
division.name
// 朝阳区
division.code
// 110105
division.revision
// 201410
division.province
// <GB/T 2260-201410> 110000 北京市
division.prefecture
// <GB/T 2260-201410> 110100 市辖区
division.toJSON()
// { name: '朝阳区', code: '110105', revision: 201410 }
division.toString()
// 北京市 市辖区 朝阳区
division.valueOf()
// 北京市 市辖区 朝阳区
Return a list of provinces in Division data structure.
gb.provinces()
Return a list of prefecture level cities in Division data structure.
gb.prefectures(110000)
Return a list of counties in Division data structure.
gb.counties(110100)
Return a list of available revisions.
gb2260.revisions()
// [ '201410', '201308', ..., '200212']
MIT.
FAQs
中华人民共和国国家标准 GB/T 2260 行政区划代码
We found that gb2260 demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.