
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.
@fekit/idcard
Advanced tools
中国身份证号合法性校验,获取身份证详细信息(含一代及二代身份证)
yarn add @fekit/idcard
或
npm i @fekit/idcard
import idcard from '@fekit/idcard';
const info: any = idcard(id) || {};
// 身份证合法返回的数据结构
{
"gender": "女", //性别
"birthday": "1967-1-11", // 出生日期
"province": { //省
"code": "410000",
"text": "河南省"
},
"city": { // 市
"code": "410400",
"text": "平顶山市"
},
"area": { // 区县
"code": "410421",
"text": "宝丰县"
},
"adreass": "河南省平顶山市宝丰县", // 籍贯
"cardText": "大陆",
"age": 33, // 年龄
"zodiac": "鼠", // 生肖
"constellation": "射手座" // 星座
}
// 身份证非法时返回的数据结构
false // 校验失败直接返回false
1.0.0
校验身份证号合法性,并返回具体信息
FAQs
The npm package @fekit/idcard receives a total of 6 weekly downloads. As such, @fekit/idcard popularity was classified as not popular.
We found that @fekit/idcard demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.