Needs Perl Modules

    @rmw/csv

    0.0.1 • Public • Published

    @rmw/csv

    async read csv line by line

    安装

    yarn add @rmw/csv
    

    或者

    npm install @rmw/csv
    

    使用

    #!/usr/bin/env coffee
    
    import CsvIter from '@rmw/csv'
    import {join,dirname} from 'path'
    
    {pathname} = new URL(import.meta.url)
    csv = join(dirname(pathname),"test.csv")
    
    for await line from CsvIter(csv)
      console.log line
    

    关于

    本项目隶属于人民网络(rmw.link) 代码计划。

    人民网络

    Keywords

    none

    Install

    npm i @rmw/csv

    DownloadsWeekly Downloads

    4

    Version

    0.0.1

    License

    AGPL

    Unpacked Size

    11.1 kB

    Total Files

    5

    Last publish

    Collaborators

    • gcxfd