1 |
|
2 | const indent = (spaces, text) => {
|
3 | return text.split('\n').map(line => ' '.repeat(spaces) + line).join('\n')
|
4 | }
|
5 | const indent2 = indent.bind(null, 2)
|
6 | const bulletize = (text) => {
|
7 | return '•' + indent2(text).slice(1)
|
8 | }
|
9 |
|
10 | module.exports = { indent, bulletize }
|