Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cmk-checklist
Advanced tools
コミケットカタログ向けチェックファイル(CSV形式)の読み込み・書き込み
npm install cmk-checklist
const checklist = require('cmk-checklist');
const fs = require('fs');
// checklist.csvを読み込み
const file = fs.readFileSync('./checklist.csv');
checklist.read(file).then((result) => {
console.log(result.header.eventName);
}).catch((error) => {
console.log(error);
});
// Async/Await形式で読み込み
async function read() {
const result = await checklist.read(file);
console.log(result.header.eventName);
});
// Callbackを設定
checklist.read(file, (err, result) => {
if (err) console.log(err);
else console.log(result.header.eventName);
});
const checklist = require('cmk-checklist');
const fs = require('fs');
async function write() {
// 既存のチェックリストを読み込み
const file = fs.readFileSync('./checklist.csv');
let checklist = await checklist.read(file);
// チェックリストを新規作成
checklist = new checklist.Checklist();
// コミケ開催番号を指定して作成
checklist = new checklist.Checklist(90);
// サークルを追加
checklist.circles.append({
serialNumber: 129936,
colorNumber: 1,
pageNumber: 831,
cutIndex: 21,
week: '金',
area: '西',
block: 'れ',
spaceNumber: 19,
spaceNumberSub: 'a',
genreCode: 112,
circleName: 'apricot+',
circleNameYomi: 'アプリコットプラス',
penName: '蒼樹うめ',
});
// チェックリストを書き込み
const output = await checklist.write(checklist);
fs.writeFileSync('./output.csv', new Buffer(output));
}
FAQs
Read/Write CSV files for Comiket catalog checklist
The npm package cmk-checklist receives a total of 7 weekly downloads. As such, cmk-checklist popularity was classified as not popular.
We found that cmk-checklist 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.