aureooms/es-parse

View on GitHub
src/csv.js

Summary

Maintainability
A
0 mins
Test Coverage
import { split , ignore } from '@aureooms/js-stream' ;

/**
 * Converts a stream of comma separated values to a stream of values.
 * @param {Stream} stream the stream to read from
 */
export default function csv ( stream ) {
    return split( ignore( stream , ' \t\n' ) , ',' ) ;
}