> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/writer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/writer/api-reference/writerapi/history.md).

# History

## isAvailable()⇒ `boolean`

Check that local storage is available before any operation is performed

## get(id)⇒ `*`

Get a history object for uuid

### Parameters

| Param |
| ----- |
| id    |

## deleteHistory(id)

Deletes history for an ID

### Parameters

| Param |
| ----- |
| id    |

## getHistory()⇒ `Array`

Get history from local storage for all articles and JSON Parse to Object

## cleanVersionsOlderThanMaxDays()

Clears items older than @see HST\_MAX\_DAYS days.

## cleanOldVersions()⇒ `boolean`

Removed half the list of articles based on the updated property

## saveHistory(id, history)⇒ `boolean`

Save history to local storage

### Parameters

| Param   |
| ------- |
| id      |
| history |
