
Security News
The Hidden Blast Radius of the Axios Compromise
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.
@netjoy/ex2json
Advanced tools
安装
$ npm i @netjoy/ex2json
引入
import ex2json from "@netjoy/ex2json";
使用
<template>
<input type="file" @change="read" />
</template>
<script>
import ex2json from "ex2json";
export default {
methods: {
read(e) {
// 文件对象
const file = e.target.files[0];
// 转成成 json
ex2json.parse(file, (code, res) => {
console.log(code, res);
});
},
},
};
</script>
可能会遇到的问题:
Vue3 报错 Module not found: Error: Can't resolve 'fs' in 'xxx',可在 vue.config.js 中新增以下配置即可:
const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
transpileDependencies: ...,
devServer: { ... },
// 下面这段配置添加上即可
configureWebpack: {
resolve: { fallback: { fs: false } }
}
})
FAQs
基于 js 编写的轻量级辅助库,将 .xlsx | .xls | .csv 文件内的数据转成 json 数据,方便数据处理,表单数据上传服务器。
We found that @netjoy/ex2json 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
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.