csv-parse

v5.5.0
CSV parsing implementing the Node.js `stream.Transform` API
csv parse parser convert tsv stream

build

npm run build:rollup && npm run build:ts

build:rollup

npx rollup -c

build:ts

cp lib/index.d.ts dist/cjs/index.d.cts && cp lib/sync.d.ts dist/cjs/sync.d.cts && cp lib/*.ts dist/esm

postbuild:ts

find dist/cjs -name '*.d.cts' -exec sh -c "sed -i "s/\.js'/\.cjs'/g" {} || sed -i '' "s/\.js'/\.cjs'/g" {}" \;

lint

npm run lint:lib && npm run lint:samples && npm run lint:test

postlint

tsc --noEmit true

lint:lib

eslint --fix lib/*.js

lint:samples

eslint --fix samples/*.js

lint:test

coffeelint --fix test/*.coffee

preversion

npm run build && git add dist

pretest

npm run build

test

mocha 'test/**/*.{coffee,ts}'

test:legacy

mocha --ignore test/api.web_stream.coffee --ignore test/api.stream.finished.coffee --loader=./test/loaders/legacy/all.js 'test/**/*.{coffee,ts}'

Metadata

  • MIT
  • Whatever
  • David Worms
  • released 8/25/2023

Downloads

Maintainers