UNPKG

pvserverhelper

Version:

This is an npm module design to perform common uses with pVelocity's pvserver

10 lines (9 loc) 283 B
### ``readFirstLine(filePath, options)`` Returns the first line separated by ``\n`` from ``filePath`` using a read stream with ``options``. - `filePath` `<String>` - `options` `<Object>` ```js pvh.readFirstLine('/Users/textfile.txt', function(firstLine) { print(firstLine); }); ```