Index


  • detect example: weather.jsQueries the Yahoo! Weather RSS feed for the locations in a list of major cities to find the first location with weather conditions satisfying a simple temperature test criteria.
  • each example: weather_forecast.jsQueries the Yahoo! Weather RSS feed for locations in a list of major cities, displaying the returned weather conditions for each.
  • reduce example: dir_size.jsFinds the size of a specified directory, giving results for both the total size of the directory as well as the total size of the files contained in the directory.
  • spawn example: count_lines.jsFinds all files in a specified directory, opens each and counts the number of lines of text.
  • work example: remove_comments.jsReads a source file, removes any comments from the text and finally saves the amended text to a new file