Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Make padding and separator configurable #29

Merged

Conversation

d-simon
Copy link
Contributor

@d-simon d-simon commented Jun 30, 2017

This change adds two configuration options :-)

Padding
Default: true
e.g.padding: false

Separator
default '|'
e.g separator: '→' or separator: false


Example

bows.config({
    padding: false,
    separator: '→'
})

const log = bows('my-log');
const log2 = bows('my-very-long-log');

log('test'); // 'my-log  → test'
log('test'); // 'my-very-long-log  → test'

@latentflip latentflip merged commit 334d8a6 into latentflip:master Jul 3, 2017
@latentflip
Copy link
Owner

Released as 1.7.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants