# clay-id@3.1.0 Id generator for ClayDB + Functions + [create(args)](#clay-id-function-create) + [newIdString()](#clay-id-function-new-id-string) + [`ClayId`](#clay-id-class) Class + [new ClayId(id)](#clay-id-class-clay-id-constructor) + [id.is(id)](#clay-id-class-clay-id-is) + [id.toString()](#clay-id-class-clay-id-toString) + [id.toJSON()](#clay-id-class-clay-id-toJSON) ## Functions ### create(args) -> `ClayId` Create a ClayId instance | Param | Type | Description | | ----- | --- | -------- | | args | * | | ### newIdString() -> `string` Generate a new id string ## `ClayId` Class Id generator ### new ClayId(id) Constructor of ClayId class | Param | Type | Description | | ----- | --- | -------- | | id | string,object | Id string | ### id.is(id) -> `boolean` Compare to another id | Param | Type | Description | | ----- | --- | -------- | | id | string,ClayId | | ### id.toString() -> `string` Convert to string ### id.toJSON() -> `string` Convert to json (Called from JSON.stringify)