Skip to content

Function: toJSON() ​

ts
function toJSON(rolls, options?): string;

Defined in: src/export.ts:66

Rolls as JSON, two spaces deep, with the format's number first. stats: true adds statsOf the rolls. fromJSON reads it back.

Parameters ​

rolls ​

readonly Roll[]

options? ​

stats? ​

boolean

Returns ​

string

MIT © John Morris