Complimentary lib to parser-cache. Extends the
Parsers
prototype with additional methods for reading files from the file system.
Install
npm:
Install withnpm i parse-files --save-dev
Usage
var Parsers = ;var parsers = ;
API
.parseFile
Asynchronously read and parse a file at the given filepath
and callback next(err, str)
.
filepath
{String}: The file to parse.options
{Object|Function}: or next function.next
{Function}: Callback function.
Example:
parsers;
.parseFiles
Synchronously read and parse a glob of files from the given patterns
and callback next(err, str)
. Options are passed to globby and .parseFile()
.
glob
{String}: Glob patterns to use for files to parse.options
{Object|Function}: or next function.next
{Function}: Callback function.
Example:
parsers;
Related
Author
Jon Schlinkert
License
Copyright (c) 2014 Jon Schlinkert, contributors.
Released under the MIT license
This file was generated by verb-cli on August 27, 2014.