<commit_before># Unsplash Api

## Install

```
$ npm install node-unsplash
```

## Usage

### `Unsplash.page(pageNumber)`

list photos of each page, suppor `promise`

```
Unsplash.page(1, function (err, photos) {
    if (err) {
        //handler error
    }
    //handler your photos
});
```

or use promise

```<commit_msg>add doc<commit_after># Unsplash Api

## Install

```
$ npm install node-unsplash
```

## Usage

```
var Unsplash = require('node-unsplash');
```


## API

### `Unsplash.page(pageNumber)`

list photos of each page, suppor `promise`

```
Unsplash.page(1, function (err, photos) {
    if (err) {
        //handler error
    }
    //handler your photos
});
```

or use promise

```
{'fraction_non_alphanumeric': 0.1754636233951498, 'fraction_numerical': 0.0028530670470756064, 'mean_word_length': 3.1785714285714284, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5334330', 'n_tokens_mistral': 272, 'n_tokens_neox': 256, 'n_words': 65}