api documentation for fast-csv (v2.4.0)

CSV parser and writer

table of contents

  1. module fast-csv
    1. function fast-csv ()
    2. function fast-csv.createReadStream (options)
    3. function fast-csv.createWriteStream (options)
    4. function fast-csv.extended (obj)
    5. function fast-csv.format (options)
    6. function fast-csv.formatter_stream (options)
    7. function fast-csv.fromPath (location, options)
    8. function fast-csv.fromStream (stream, options)
    9. function fast-csv.fromString (string, options)
    10. function fast-csv.parse ()
    11. function fast-csv.parser_stream (options)
    12. function fast-csv.write (arr, options, ws)
    13. function fast-csv.writeToBuffer (arr, options, cb)
    14. function fast-csv.writeToPath (path, arr, options)
    15. function fast-csv.writeToStream (ws, arr, options)
    16. function fast-csv.writeToString (arr, options, cb)
    17. object fast-csv.formatter
    18. object fast-csv.formatter_stream.prototype
    19. object fast-csv.parser_stream.prototype
  2. module fast-csv.extended
    1. function fast-csv.extended (obj)
    2. function fast-csv.extended.asyncEach (arr, iter, cb)
    3. function fast-csv.extended.contains (arr, obj)
    4. function fast-csv.extended.containsAt (arr, obj, index)
    5. function fast-csv.extended.deepEqual (actual, expected)
    6. function fast-csv.extended.deepMerge (obj)
    7. function fast-csv.extended.define (tester, decorate)
    8. function fast-csv.extended.escape (str, except)
    9. function fast-csv.extended.expose ()
    10. function fast-csv.extended.extend (supr)
    11. function fast-csv.extended.format (str, obj)
    12. function fast-csv.extended.has (obj, prop)
    13. function fast-csv.extended.instanceOf (obj, clazz)
    14. function fast-csv.extended.isArguments (object)
    15. function fast-csv.extended.isArray ()
    16. function fast-csv.extended.isBoolean (obj)
    17. function fast-csv.extended.isDate (obj)
    18. function fast-csv.extended.isDefined (obj)
    19. function fast-csv.extended.isEmpty (str)
    20. function fast-csv.extended.isEq (obj, obj2)
    21. function fast-csv.extended.isFalse (obj)
    22. function fast-csv.extended.isFunction (obj)
    23. function fast-csv.extended.isGt (obj, obj2)
    24. function fast-csv.extended.isGte (obj, obj2)
    25. function fast-csv.extended.isHash (obj)
    26. function fast-csv.extended.isIn (obj, arr)
    27. function fast-csv.extended.isLength (obj, l)
    28. function fast-csv.extended.isLike (obj, reg)
    29. function fast-csv.extended.isLt (obj, obj2)
    30. function fast-csv.extended.isLte (obj, obj2)
    31. function fast-csv.extended.isNeq (obj, obj2)
    32. function fast-csv.extended.isNotIn (obj, arr)
    33. function fast-csv.extended.isNotLength (obj, l)
    34. function fast-csv.extended.isNotLike (obj, reg)
    35. function fast-csv.extended.isNotNull (obj)
    36. function fast-csv.extended.isNull (obj)
    37. function fast-csv.extended.isNumber (obj)
    38. function fast-csv.extended.isObject (obj)
    39. function fast-csv.extended.isRegExp (obj)
    40. function fast-csv.extended.isSeq (obj, obj2)
    41. function fast-csv.extended.isSneq (obj, obj2)
    42. function fast-csv.extended.isString (obj)
    43. function fast-csv.extended.isTrue (obj)
    44. function fast-csv.extended.isUndefined (obj)
    45. function fast-csv.extended.isUndefinedOrNull (obj)
    46. function fast-csv.extended.keys (obj)
    47. function fast-csv.extended.merge (obj)
    48. function fast-csv.extended.multiply (str, times)
    49. function fast-csv.extended.notContains (arr, obj)
    50. function fast-csv.extended.notContainsAt (arr, obj, index)
    51. function fast-csv.extended.notHas (obj, prop)
    52. function fast-csv.extended.omit (hash, omitted)
    53. function fast-csv.extended.pad (string, length, ch, end)
    54. function fast-csv.extended.register (alias, extendWith)
    55. function fast-csv.extended.spreadArgs (f, args, scope)
    56. function fast-csv.extended.style (str, options)
    57. function fast-csv.extended.switcher (obj)
    58. function fast-csv.extended.tester (obj)
    59. function fast-csv.extended.toArray (testStr, delim)
    60. function fast-csv.extended.trim (str)
    61. function fast-csv.extended.trimLeft (str)
    62. function fast-csv.extended.trimRight (str)
    63. function fast-csv.extended.truncate (string, length, end)
    64. object fast-csv.extended.__defined__
    65. object fast-csv.extended.characters
    66. object fast-csv.extended.hash
    67. string fast-csv.extended.LINE_BREAK
  3. module fast-csv.format
    1. function fast-csv.format (options)
    2. function fast-csv.format.createWriteStream (options)
    3. function fast-csv.format.write (arr, options, ws)
    4. function fast-csv.format.writeToBuffer (arr, options, cb)
    5. function fast-csv.format.writeToPath (path, arr, options)
    6. function fast-csv.format.writeToStream (ws, arr, options)
    7. function fast-csv.format.writeToString (arr, options, cb)
  4. module fast-csv.formatter
    1. function fast-csv.formatter.checkHeaders (stream, item)
    2. function fast-csv.formatter.createFormatter (options, stream)
    3. function fast-csv.formatter.defaultTransform (row, cb)
    4. function fast-csv.formatter.transformItem (stream, item)
  5. module fast-csv.formatter_stream
    1. function fast-csv.formatter_stream (options)
    2. function fast-csv.formatter_stream.super_ (options)
  6. module fast-csv.formatter_stream.prototype
    1. function fast-csv.formatter_stream.prototype.__transform (row, cb)
    2. function fast-csv.formatter_stream.prototype._flush (cb)
    3. function fast-csv.formatter_stream.prototype._transform (item, encoding, cb)
    4. function fast-csv.formatter_stream.prototype.transform (cb)
    5. number fast-csv.formatter_stream.prototype.headersLength
    6. number fast-csv.formatter_stream.prototype.totalCount
    7. object fast-csv.formatter_stream.prototype.headers
  7. module fast-csv.parse
    1. function fast-csv.parse ()
    2. function fast-csv.parse.createReadStream (options)
    3. function fast-csv.parse.createWriteStream (options)
    4. function fast-csv.parse.format (options)
    5. function fast-csv.parse.fromPath (location, options)
    6. function fast-csv.parse.fromStream (stream, options)
    7. function fast-csv.parse.fromString (string, options)
    8. function fast-csv.parse.write (arr, options, ws)
    9. function fast-csv.parse.writeToBuffer (arr, options, cb)
    10. function fast-csv.parse.writeToPath (path, arr, options)
    11. function fast-csv.parse.writeToStream (ws, arr, options)
    12. function fast-csv.parse.writeToString (arr, options, cb)
  8. module fast-csv.parser_stream
    1. function fast-csv.parser_stream (options)
    2. function fast-csv.parser_stream.super_ (options)
  9. module fast-csv.parser_stream.prototype
    1. boolean fast-csv.parser_stream.prototype.__emittedData
    2. boolean fast-csv.parser_stream.prototype.__endEmitted
    3. function fast-csv.parser_stream.prototype.__doFlush (callback)
    4. function fast-csv.parser_stream.prototype.__emitRecord (dataRow, count)
    5. function fast-csv.parser_stream.prototype.__flushPausedBuffer ()
    6. function fast-csv.parser_stream.prototype.__handleLine (line, index, ignore, next)
    7. function fast-csv.parser_stream.prototype.__processHeaders (rows, cb)
    8. function fast-csv.parser_stream.prototype.__processRows (rows, data, cb)
    9. function fast-csv.parser_stream.prototype.__removeBOM (data)
    10. function fast-csv.parser_stream.prototype.__transform (data, next)
    11. function fast-csv.parser_stream.prototype.__validate (data, next)
    12. function fast-csv.parser_stream.prototype._flush (callback)
    13. function fast-csv.parser_stream.prototype._parse (data, hasMoreData, cb)
    14. function fast-csv.parser_stream.prototype._transform (data, encoding, done)
    15. function fast-csv.parser_stream.prototype.emit (event)
    16. function fast-csv.parser_stream.prototype.isStreamPaused ()
    17. function fast-csv.parser_stream.prototype.on (evt)
    18. function fast-csv.parser_stream.prototype.transform (cb)
    19. function fast-csv.parser_stream.prototype.validate (cb)
    20. object fast-csv.parser_stream.prototype.__pausedDone

module fast-csv

function fast-csv ()

function fast-csv.createReadStream (options)

function fast-csv.createWriteStream (options)

function fast-csv.extended (obj)

function fast-csv.format (options)

function fast-csv.formatter_stream (options)

function fast-csv.fromPath (location, options)

function fast-csv.fromStream (stream, options)

function fast-csv.fromString (string, options)

function fast-csv.parse ()

function fast-csv.parser_stream (options)

function fast-csv.write (arr, options, ws)

function fast-csv.writeToBuffer (arr, options, cb)

function fast-csv.writeToPath (path, arr, options)

function fast-csv.writeToStream (ws, arr, options)

function fast-csv.writeToString (arr, options, cb)

module fast-csv.extended

function fast-csv.extended (obj)

function fast-csv.extended.asyncEach (arr, iter, cb)

function fast-csv.extended.contains (arr, obj)

function fast-csv.extended.containsAt (arr, obj, index)

function fast-csv.extended.deepEqual (actual, expected)

function fast-csv.extended.deepMerge (obj)

function fast-csv.extended.define (tester, decorate)

function fast-csv.extended.escape (str, except)

function fast-csv.extended.expose ()

function fast-csv.extended.extend (supr)

function fast-csv.extended.format (str, obj)

function fast-csv.extended.has (obj, prop)

function fast-csv.extended.instanceOf (obj, clazz)

function fast-csv.extended.isArguments (object)

function fast-csv.extended.isArray ()

function fast-csv.extended.isBoolean (obj)

function fast-csv.extended.isDate (obj)

function fast-csv.extended.isDefined (obj)

function fast-csv.extended.isEmpty (str)

function fast-csv.extended.isEq (obj, obj2)

function fast-csv.extended.isFalse (obj)

function fast-csv.extended.isFunction (obj)

function fast-csv.extended.isGt (obj, obj2)

function fast-csv.extended.isGte (obj, obj2)

function fast-csv.extended.isHash (obj)

function fast-csv.extended.isIn (obj, arr)

function fast-csv.extended.isLength (obj, l)

function fast-csv.extended.isLike (obj, reg)

function fast-csv.extended.isLt (obj, obj2)

function fast-csv.extended.isLte (obj, obj2)

function fast-csv.extended.isNeq (obj, obj2)

function fast-csv.extended.isNotIn (obj, arr)

function fast-csv.extended.isNotLength (obj, l)

function fast-csv.extended.isNotLike (obj, reg)

function fast-csv.extended.isNotNull (obj)

function fast-csv.extended.isNull (obj)

function fast-csv.extended.isNumber (obj)

function fast-csv.extended.isObject (obj)

function fast-csv.extended.isRegExp (obj)

function fast-csv.extended.isSeq (obj, obj2)

function fast-csv.extended.isSneq (obj, obj2)

function fast-csv.extended.isString (obj)

function fast-csv.extended.isTrue (obj)

function fast-csv.extended.isUndefined (obj)

function fast-csv.extended.isUndefinedOrNull (obj)

function fast-csv.extended.keys (obj)

function fast-csv.extended.merge (obj)

function fast-csv.extended.multiply (str, times)

function fast-csv.extended.notContains (arr, obj)

function fast-csv.extended.notContainsAt (arr, obj, index)

function fast-csv.extended.notHas (obj, prop)

function fast-csv.extended.omit (hash, omitted)

function fast-csv.extended.pad (string, length, ch, end)

function fast-csv.extended.register (alias, extendWith)

function fast-csv.extended.spreadArgs (f, args, scope)

function fast-csv.extended.style (str, options)

function fast-csv.extended.switcher (obj)

function fast-csv.extended.tester (obj)

function fast-csv.extended.toArray (testStr, delim)

function fast-csv.extended.trim (str)

function fast-csv.extended.trimLeft (str)

function fast-csv.extended.trimRight (str)

function fast-csv.extended.truncate (string, length, end)

module fast-csv.format

function fast-csv.format (options)

function fast-csv.format.createWriteStream (options)

function fast-csv.format.write (arr, options, ws)

function fast-csv.format.writeToBuffer (arr, options, cb)

function fast-csv.format.writeToPath (path, arr, options)

function fast-csv.format.writeToStream (ws, arr, options)

function fast-csv.format.writeToString (arr, options, cb)

module fast-csv.formatter

function fast-csv.formatter.checkHeaders (stream, item)

function fast-csv.formatter.createFormatter (options, stream)

function fast-csv.formatter.defaultTransform (row, cb)

function fast-csv.formatter.transformItem (stream, item)

module fast-csv.formatter_stream

function fast-csv.formatter_stream (options)

function fast-csv.formatter_stream.super_ (options)

module fast-csv.formatter_stream.prototype

function fast-csv.formatter_stream.prototype.__transform (row, cb)

function fast-csv.formatter_stream.prototype._flush (cb)

function fast-csv.formatter_stream.prototype._transform (item, encoding, cb)

function fast-csv.formatter_stream.prototype.transform (cb)

module fast-csv.parse

function fast-csv.parse ()

function fast-csv.parse.createReadStream (options)

function fast-csv.parse.createWriteStream (options)

function fast-csv.parse.format (options)

function fast-csv.parse.fromPath (location, options)

function fast-csv.parse.fromStream (stream, options)

function fast-csv.parse.fromString (string, options)

function fast-csv.parse.write (arr, options, ws)

function fast-csv.parse.writeToBuffer (arr, options, cb)

function fast-csv.parse.writeToPath (path, arr, options)

function fast-csv.parse.writeToStream (ws, arr, options)

function fast-csv.parse.writeToString (arr, options, cb)

module fast-csv.parser_stream

function fast-csv.parser_stream (options)

function fast-csv.parser_stream.super_ (options)

module fast-csv.parser_stream.prototype

function fast-csv.parser_stream.prototype.__doFlush (callback)

function fast-csv.parser_stream.prototype.__emitRecord (dataRow, count)

function fast-csv.parser_stream.prototype.__flushPausedBuffer ()

function fast-csv.parser_stream.prototype.__handleLine (line, index, ignore, next)

function fast-csv.parser_stream.prototype.__processHeaders (rows, cb)

function fast-csv.parser_stream.prototype.__processRows (rows, data, cb)

function fast-csv.parser_stream.prototype.__removeBOM (data)

function fast-csv.parser_stream.prototype.__transform (data, next)

function fast-csv.parser_stream.prototype.__validate (data, next)

function fast-csv.parser_stream.prototype._flush (callback)

function fast-csv.parser_stream.prototype._parse (data, hasMoreData, cb)

function fast-csv.parser_stream.prototype._transform (data, encoding, done)

function fast-csv.parser_stream.prototype.emit (event)

function fast-csv.parser_stream.prototype.isStreamPaused ()

function fast-csv.parser_stream.prototype.on (evt)

function fast-csv.parser_stream.prototype.transform (cb)

function fast-csv.parser_stream.prototype.validate (cb)

[ this document was created with utility2 ]