
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.
xmlsx = xml + xlsx
frozen: frozen a line (冻结某行以上)
@type step
@param [Number | String] - rowNumber
entry: input entry (输入表格数据)
@type step
@param [Array[Array]] - inputData
valid: set valid (数据验证)
@type step
@param [Array[Object]] - validData
hide: hide one cell (隐藏某个cell)
@type step
@param [String] - hideCell
output: get xlsx json (解析xlsx并输出内容)
@type final
@return @see entry param
done: get xlsx buffer (获取设定后的xlsx)
@type final
@return [Buffer] xlsxBuffer
getCell: get a xlsx axis (转换xy坐标为xlsx的位置)
@type tool
@param [Number, Number] x,y start on 0
@return [String] cell eg:'A1'
formatDate: format Date cell (将日期格式的cell值转换为Date)
@type tool
@param [Number|String] dateCellVal
@return [Date] date
var xmlsx = new Xmlsx()
xmlsx
.entry([
['1', 2, '三'],
['foo', 'bar'],
[],
['', 'space', ],
['', '', '@_@']
])
.frozen('5')
.hide('A2')
.valid([
{ A1: ['male', 'famale'] },
{ B5: ['JS', 'Node', '东北话'] },
{ 'C2:C1000': ['甜豆腐脑', '咸豆腐脑'] }
])
.done(function(err, buf) {
fs.writeFile('test.xlsx', buf)
})
fs.readFile('test.xlsx', function(err, buf) {
var xmlsx = new Xmlsx(buf)
xmlsx.output()
//-> { entry: [[...], [...], ...] }
xmlsx.frozen().output()
//-> { ..., frozen: '5' }
xmlsx.valid().frozen().output()
//-> { ..., valid: [{ A1: [ male, famale ]}] }
})
Xmlsx.getCell(0, 0) //-> 'A1'
Xmlsx.getCell(1, 2) //-> 'B3'
Xmlsx.formatDate(42735) //-> Sun Jan 01 2017 00:00:00 GMT+0800 (CST) (2017/1/1)
FAQs
xmlsx can make & read xlsx with format
We found that xmlsx 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.