File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -15,15 +15,15 @@ npm install --save cloudfront-log-parser
1515Given a string or Buffer of a log file, the ` parse ` function can be called directly, returning an array of parsed log entries.
1616``` javascript
1717const CloudFrontParser = require (' cloudfront-log-parser' );
18- const accesses = CloudFrontParser .parse (< Buffer or string of log file> , { format: ' web' });
18+ const accesses = CloudFrontParser .parse (' <contents of log file>' , { format: ' web' });
1919// accesses = array of objects, see below for format
2020```
2121
2222### Callback API
2323If ` parse ` is provided with a callback function, it will be called with an array of parsed entries as the result.
2424``` javascript
2525const CloudFrontParser = require (' cloudfront-log-parser' );
26- CloudFrontParser .parse (< Buffer or string of log file> , { format: ' web' }, function (err , accesses ) {
26+ CloudFrontParser .parse (' <contents of log file>' , { format: ' web' }, function (err , accesses ) {
2727 // accesses = array of objects, see below for format
2828});
2929```
You can’t perform that action at this time.
0 commit comments