
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
@lx-frontend/city-data
Advanced tools
cityData 中国省市区三级联动数据
cjslib/index.js安装npm包:
npm install city-data
引入使用:可参考安装包lib/index.js,自定义名称,按需引入
// cvux格式文件,及工具函数引入
import { cvux as 自定义名称, tools } from 'city-data/lib/mobile'
const value2name = tools.value2name
const name2value = tools.name2value
// pc格式文件,及工具函数引入
import { province, city, area, tools } from 'city-data/lib/pc'
const value2name = tools.value2name
const name2value = tools.name2value
构建打包命令
npm run build 生成新的lib,但不会重新生成cvux和pc端数据npm run build:all 首先从源数据重新生成cvux和pc端数据,接着生成行的lib包源数据为back_end_data.js,我司后端使用的源数据
生成前端数据格式的指令:
npm run build-cvux:生成前端cvux中使用的数据格式,./data/china_address_cvux.json
[
{
"name": "北京市",
"value": "110000"
},
...
]
npm run build-pc:生成前端pc中使用的数据格式,./data/china_address_pc.js
module.exports = {
province: [],
city: [],
area: []
}
china-area-datanpm包,使用国家统计局发布的省市区文件,根据我司业务情况,对数据进行了修改FAQs
We found that @lx-frontend/city-data demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.