Skip to content
tkellen edited this page Apr 15, 2013 · 3 revisions

An interface for reading and writing node-task Records.

See recordio-file and recordio-s3 for example implementations.

read(path, options)

Read contents of path into a Record and return a promise which resolves to it. If any additional parameters are required for loading (i.e. providing a s3 client, encoding, etc), they can be passed in via options.

write(buffer, options)

Write contents of buffer to destination and return a promise which resolves to the buffer provided. If any additional parameters are required for saving (i.e. providing a s3 client, acl settings, etc), they can be passed via options.

Clone this wiki locally