{"id":15435823,"url":"https://github.com/spring-raining/cmk-checklist","last_synced_at":"2025-04-06T16:47:34.592Z","repository":{"id":57201195,"uuid":"72358173","full_name":"spring-raining/cmk-checklist","owner":"spring-raining","description":"Read/Write CSV files for Comiket catalog checklist","archived":false,"fork":false,"pushed_at":"2016-12-16T21:06:40.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T20:32:39.996Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/spring-raining.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-30T15:38:57.000Z","updated_at":"2023-03-02T13:28:35.000Z","dependencies_parsed_at":"2022-09-15T11:23:16.200Z","dependency_job_id":null,"html_url":"https://github.com/spring-raining/cmk-checklist","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-raining%2Fcmk-checklist","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-raining%2Fcmk-checklist/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-raining%2Fcmk-checklist/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spring-raining%2Fcmk-checklist/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spring-raining","download_url":"https://codeload.github.com/spring-raining/cmk-checklist/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517918,"owners_count":20951715,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T18:46:17.040Z","updated_at":"2025-04-06T16:47:34.541Z","avatar_url":"https://github.com/spring-raining.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# cmk-checklist\n\n[![CircleCI](https://circleci.com/gh/spring-raining/cmk-checklist.svg?style=svg)](https://circleci.com/gh/spring-raining/cmk-checklist)\n\nコミケットカタログ向けチェックファイル(CSV形式)の読み込み・書き込み\n\n## installation\n\n```\nnpm install cmk-checklist\n```\n\n## Usage\n\n### read\n\n```javascript\nconst checklist = require('cmk-checklist');\nconst fs = require('fs');\n\n// checklist.csvを読み込み\nconst file = fs.readFileSync('./checklist.csv');\n\nchecklist.read(file).then((result) =\u003e {\n  console.log(result.header.eventName);\n}).catch((error) =\u003e {\n  console.log(error);\n});\n\n// Async/Await形式で読み込み\nasync function read() {\n  const result = await checklist.read(file);\n  console.log(result.header.eventName);\n});\n\n// Callbackを設定\nchecklist.read(file, (err, result) =\u003e {\n  if (err) console.log(err);\n  else console.log(result.header.eventName);\n});\n```\n\n### write\n\n```javascript\nconst checklist = require('cmk-checklist');\nconst fs = require('fs');\n\nasync function write() {\n  // 既存のチェックリストを読み込み\n  const file = fs.readFileSync('./checklist.csv');\n  let chk = await checklist.read(file);\n\n  // チェックリストを新規作成\n  chk = new checklist.Checklist();\n  // コミケ開催番号を指定して作成\n  chk = new checklist.Checklist(91);\n\n  // サークルを追加\n  chk.circles.append({\n    serialNumber: 129936,\n    colorNumber: 1,\n    pageNumber: 831,\n    cutIndex: 21,\n    week: '金',\n    area: '西',\n    block: 'れ',\n    spaceNumber: 19,\n    spaceNumberSub: 'a',\n    genreCode: 112,\n    circleName: 'apricot+',\n    circleNameYomi: 'アプリコットプラス',\n    penName: '蒼樹うめ',\n  });\n\n  // チェックリストを書き込み\n  const output = await checklist.write(chk);\n  fs.writeFileSync('./output.csv', new Buffer(output));\n}\n```\n\n## license\n\n[MIT](https://github.com/spring-raining/cmk-checklist/blob/master/LICENCE)\n\n## Author\n\n[spring-raining](https://github.com/spring-raining)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-raining%2Fcmk-checklist","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspring-raining%2Fcmk-checklist","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspring-raining%2Fcmk-checklist/lists"}