Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

craigslist-apa-parse

csbrandt35MIT2.0.0

Given an RSS feed from the apts/housing section of craigslist, return an array of JSON posts with pertinent information parsed out

craigslist, apartments, housing, rentals, parser

readme

NPM

Given an RSS feed from the apts/housing section of craigslist, return an array of JSON posts with pertinent information parsed out

Installation

$ npm install craigslist-apa-parse

Function

parse(rss, cb)

rss: string, XML RSS feed string representing posts from craigslist apa section

cb: Function(error, posts), callback function

  • error: Error, passed when issue encountered reading feed
  • posts: array, JSON array of posts with the following schema,
    • date
    • title
    • location
    • price
    • bedroom
    • url

Running Tests

Install the development dependencies:

$ npm install

Then run the tests:

$ npm test

Code Coverage

Install the development dependencies:

$ npm install

Then run coverage

$ npm run coverage

View coverage reports

$ firefox coverage/lcov-report/index.html

Browser Bundle

$ npm run build