
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
csv-array-to-object
Advanced tools
exSetCSV:
[
["Key", "column1", "column2"],
["uuid1", val1, val3],
["uuid2", val2, val4]
]
ex1:
import csvToObject from "csvToObject"
const toObject = new csvToObject()
// regist header && UUIDKey
toObject.registHeader(header, "Key")
const output = toObject.exec(csvArray) // without header
/*
ex data:
output {
column1:
uuid1: val1,
uuid2: val2
column2:
uuid1: val3,
uuid2: val4
}
*/
ex2:
import csvToObject from "csvToObject"
const toObject = new csvToObject(header, "Key") // setConstructor
const output = toObject.exec(csvArray) // without header
ex3:
import csvToObject from "csvToObject"
const toObject = new csvToObject()
const output = toObject.allInOneExec(csvArray, "Key") // with header
一次元配列を受け取ります。
要素をkeyとしてindexをvalueとして保存します。
一次元配列を受け取ります。
要素をvalueとしてindexをkeyとして保存します。
ユニークなKey名になる列のcolumn名を保存します。
Object化する時のColumn名(ex: column1, column2)を指定の名前で保存します。
headerの登録と、outputKeysが存在すれば、outputKeysも登録します。
srcにheader名,keyに出力したいKey名を入力し、登録します。
srcにheader名,keyに出力したいKey名を入力し、登録します。 ただし、登録されていないheader名の場合Errorを返します。
UUIDKeyをkeyで登録します。
UUIDKeyを該当するindexのcolumn名として登録します。
key名とvalueでOutputKeysを登録します。
headerを登録し、まだheader名で登録されていないOutputKeyがあれば、valueをheader名として、登録します。
また第二引数でuuidKeyを登録します。
parameterをすべて初期状態に戻します。
引数を、二次元配列で受け取り(headerが存在する場合は除けてください。)出力を返します。
引数を、二次元配列で受け取り(header付きで)出力を返します。
https://github.com/imamiya-masaki/csvArrayToObject
FAQs
exSetCSV:
We found that csv-array-to-object 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
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.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.