<commit_before># Screeps API
![npm](https://nodei.co/npm/screeps-api.png "NPM")

This is a nodejs API for the game Screeps

## Basic usage
```
const ScreepsAPI = require('screeps-api')
const fs = require('fs')

let api = new ScreepsAPI({
  email: '<EMAIL>',
  password: '<PASSWORD>'
})

Promise.resolve()
  .then(()=>api.connect())
  .then(()=>api.memory.get())
  .then(memory=>{
    fs.writeFileSync('memory.json',JSON.stringify(memory))
  })
  .catch(err=>console.error(err))
```<commit_msg>Minor tweaks to README example.<commit_after># Screeps API
![npm](https://nodei.co/npm/screeps-api.png "NPM")

This is a nodejs API for the game Screeps

## Basic usage
```javascript
const ScreepsAPI = require('screeps-api');
const fs = require('fs');

const api = new ScreepsAPI({
  email: '<EMAIL>',
  password: '<PASSWORD>'
});

Promise.resolve()
  .then(() => api.connect())
  .then(() => api.memory.get())
  .then(memory => {
    fs.writeFileSync('memory.json', JSON.stringify(memory))
  })
  .catch(err => console.error(err));
```
{'fraction_non_alphanumeric': 0.20505344995140914, 'fraction_numerical': 0.0, 'mean_word_length': 4.5675675675675675, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '3559290', 'n_tokens_mistral': 373, 'n_tokens_neox': 362, 'n_words': 81}