Reference Source

References

summary
public

Extract the first image or potentially featured image for a post

public

F formatPayout(post: object, fix: number): number

Formats a Steem post's payout, does not discriminate for pending or completed posts. Values are for SBD

public

F formatRep(reputation: string): number

Formats a Steem account's reputation

public

F formatVests(account: object): number

Formats a Steem account's vests

public

F formatVotes(raw: string[] | object, count: string, downvoted: string): object

Formats a Steem post's active votes Will sort out removed votes, and order by weight Will trim return array to specified or default count voterCount

public

Formats a Steem account's voting power using the manarbar data

public

F accountMeta(data: object, config: object): object

Returns meta data from Steem account data

public

F meta(data: object, config: object): object

Returns meta data from Steem post or account data

public

F postMeta(data: object, config: object): object

Returns meta data from Steem post data

public

F parse(content: content, config: object): object

Parses a Steem post object or array of Steem post body strings or objects

public

F parsePost(content: object | string, options: object): object | string

Parses a Steem post object or body string

public

F async parsePosts(content: array, options: object): array

Parses multiple Steem post objects or body strings

public

F sortVotes(votes: object | array): object

Returns an object of sorted Steem votes by upvotes, downvotes and removedvotes

public

F voteStats(votes: object | array): object

Returns stats about a Steem votes object

public

Validates a Steem account username

public

V format: {"formatRep": *, "formatPayout": *, "formatVotes": *, "formatImage": *, "formatVotingPower": *, "formatVests": *}

public

V lib: {"stats": *, "sort": *, "parse": *, "format": *, "meta": *}

public

V sort: {"sortVotes": *}

public

V stats: {"voteStats": *}

public

V validate: {"validateAccount": *}