<commit_before># usgs-earthquake-reports

> This is a library that parses and returns USGS [earthquake reports](http://earthquake.usgs.gov/earthquakes/).

## Install

```
$ npm install usgs-earthquake-reports
```


## Usage

```js
var earthquakeReports = require('usgs-earthquake-reports');

// Request all events with a magnitude between 0.5 and 1.5 between the specified times 
var filterOptions = {
	minMag: 0.5,
	maxMag: 1.5,
	minTime: '2016-04-17T20:30:04',
	maxTime: '2016-04-17T20:45:04'
};

earthquakeReports('day', filterOptions).then(function usgsResponse(data) {
	console.log(data);
}).catch(function errorHandler(err) {
	console.log(err);
});
```


## API

### earthquakeReports([timeFrame, filterOptions])


### timeFrame(optional)
- Type: `string`
- Default: `day` 
- Valid Options: `hour | day | week | month`
- Note: All USGS products are updated every 5 minutes, with the exception of monthly data which 
is updated in 15 minute intervals.  It is highly suggested that requested data is cached to reduce
the load put on the USGS servers.


### filterOptions (optional)

- Type: `object`
- Note: Defines filters for the returned data.  Filters do not need to be combined with counterpart options.
- Properties:
	- `minMag`  
		* Type: `decimal`
		* Defines the minimum magnitude event to return
	- `minMag`
		* Type: `decimal`
		* Defines the maximum magnitude event to return
	- `minTime`
		* Type: `string`
		* Format: `YYYY-MM-DDTHH:mm:ss`, e.g. 2016-01-30T00:00:00
		* Defines the oldest event to return in UTC
	- `maxTime`
		* Type: `string`
		* Format: `YYYY-MM-DDTHH:mm:ss`, e.g. 2016-01-30T23:59:59
		* Defines the most recent event to return in UTC
	- `minLat`
		* Type: `float`
		* Defines the minimum event latitude to return
	- `maxLat`
		* Type: `float`
		* Defines the maximum event latitude to return

## License

[ISC](https://github.com/jcharrell/usgs-earthquake-reports/blob/master/LICENSE) © [<NAME>](https://github.com/jcharrell)<commit_msg>Added documentation for longitude filters<commit_after># usgs-earthquake-reports

> This is a library that parses and returns USGS [earthquake reports](http://earthquake.usgs.gov/earthquakes/).

## Install

```
$ npm install usgs-earthquake-reports
```


## Usage

```js
var earthquakeReports = require('usgs-earthquake-reports');

// Request all events with a magnitude between 0.5 and 1.5 between the specified times 
var filterOptions = {
	minMag: 0.5,
	maxMag: 1.5,
	minTime: '2016-04-17T20:30:04',
	maxTime: '2016-04-17T20:45:04'
};

earthquakeReports('day', filterOptions).then(function usgsResponse(data) {
	console.log(data);
}).catch(function errorHandler(err) {
	console.log(err);
});
```


## API

### earthquakeReports([timeFrame, filterOptions])


### timeFrame(optional)
- Type: `string`
- Default: `day` 
- Valid Options: `hour | day | week | month`
- Note: All USGS products are updated every 5 minutes, with the exception of monthly data which 
is updated in 15 minute intervals.  It is highly suggested that requested data is cached to reduce
the load put on the USGS servers.


### filterOptions (optional)

- Type: `object`
- Note: Defines filters for the returned data.  Filters do not need to be combined with counterpart options.
- Properties:
	- `minMag`  
		* Type: `decimal`
		* Defines the minimum magnitude event to return
	- `minMag`
		* Type: `decimal`
		* Defines the maximum magnitude event to return
	- `minTime`
		* Type: `string`
		* Format: `YYYY-MM-DDTHH:mm:ss`, e.g. 2016-01-30T00:00:00
		* Defines the oldest event to return in UTC
	- `maxTime`
		* Type: `string`
		* Format: `YYYY-MM-DDTHH:mm:ss`, e.g. 2016-01-30T23:59:59
		* Defines the most recent event to return in UTC
	- `minLat`
		* Type: `float`
		* Defines the minimum event latitude to return
	- `maxLat`
		* Type: `float`
		* Defines the maximum event latitude to return
	- `minLng`
		* Type: `float`
		* Defines the minimum event longitude to return
	- `maxLng`
		* Type: `float`
		* Defines the maximum event longitude to return

## License

[ISC](https://github.com/jcharrell/usgs-earthquake-reports/blob/master/LICENSE) © [<NAME>](https://github.com/jcharrell)
{'fraction_non_alphanumeric': 0.1294060840173829, 'fraction_numerical': 0.032351521004345726, 'mean_word_length': 4.058608058608058, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1129435', 'n_tokens_mistral': 1568, 'n_tokens_neox': 1391, 'n_words': 431}