<commit_before>## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]

> Simplified and promised HTTP/HTTPS requests, sindresorhus/got

## Install
```bash
npm install then-got
npm test
```


## Usage
> For more use-cases see the [tests](./test.js)

```js
var startsWith = require('starts-with');
var assert = require('assert');
var got = require('then-got');

got('http://todomvc.com')
  .then(function fulfilled(res) {
    //=> <!doctype html> ...
    assert.ok(startsWith(res, '<!doctype html>'));
    assert.ok(res.length >= 1000);
  });

got.get('http://todomvc.com')
  .then(function fulfilled(res) {
    //=> <!doctype html> ...
    assert.ok(startsWith(res, '<!doctype html>'));
    assert.ok(res.length >= 1000);
  });
```<commit_msg>update usage examples<commit_after>## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]

> Simplified and promised HTTP/HTTPS requests, sindresorhus/got

## Install
```bash
npm install then-got
npm test
```


## Usage
> For more use-cases see the [tests](./test.js)

```js
var startsWith = require('starts-with');
var assert = require('assert');
var got = require('then-got');

got('http://todomvc.com')
  .then(function fulfilled(arr) {
    var body = arr[0];
    var stream = arr[1];
    //=> body === <!doctype html> ...
    assert.ok(startsWith(body, '<!doctype html>'));
    assert.ok(body.length >= 1000);
  });

got.get('http://todomvc.com')
  .then(function fulfilled(arr) {
    var body = arr[0];
    var stream = arr[1];
    //=> body === <!doctype html> ...
    assert.ok(startsWith(body, '<!doctype html>'));
    assert.ok(body.length >= 1000);
  });
```
{'fraction_non_alphanumeric': 0.2201453790238837, 'fraction_numerical': 0.010384215991692628, 'mean_word_length': 4.337950138504155, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 23, 'https://': 0, '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': '3970533', 'n_tokens_mistral': 745, 'n_tokens_neox': 684, 'n_words': 136}