-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
exported formatters and utility functions
- Loading branch information
1 parent
703c1ea
commit d1e9ffa
Showing
4 changed files
with
25 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
const _SingleBar = require('./lib/single-bar'); | ||
const _MultiBar = require('./lib/multi-bar'); | ||
const _Presets = require('./presets/index'); | ||
const _Formatter = require('./lib/formatter'); | ||
const _defaultFormatValue = require('./lib/format-value'); | ||
const _defaultFormatBar = require('./lib/format-bar'); | ||
const _defaultFormatTime = require('./lib/format-time'); | ||
|
||
// sub-module access | ||
module.exports = { | ||
Bar: _SingleBar, | ||
SingleBar: _SingleBar, | ||
MultiBar: _MultiBar, | ||
Presets: _Presets | ||
Presets: _Presets, | ||
Format: { | ||
Formatter: _Formatter, | ||
BarFormat: _defaultFormatBar, | ||
ValueFormat: _defaultFormatValue, | ||
TimeFormat: _defaultFormatTime | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters