Skip to content
This repository has been archived by the owner on Jan 5, 2019. It is now read-only.

Commit

Permalink
Added groupMods to public api
Browse files Browse the repository at this point in the history
  • Loading branch information
eps1lon committed Mar 5, 2018
1 parent 0ab85f0 commit 0748ca8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Format.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import formatGemStats, { GemId } from './format/gemStats';
import groupMods from './format/groupMods';
import formatStats, { Stat } from './format/stats';
import textToStats, {
Options as TextToStatsOptions
Expand Down Expand Up @@ -39,6 +40,10 @@ export class Format {
return formatGemStats(gem_id, stats, this.options);
}

public groupMods(mods: Stat[][]) {
return groupMods(mods, this.options);
}

public textToStats(text: string, options: Partial<TextToStatsOptions> = {}) {
const { datas, start_file } = this.options;
return textToStats(text, {
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export { default as formatStats, Fallback } from './format/stats';
export { default as formatGemStats } from './format/gemStats';
export { default as groupMods } from './format/groupMods';
export {
default as textToStats,
textToStatsArray,
Expand Down

0 comments on commit 0748ca8

Please sign in to comment.