Let there be lines!
This commit is contained in:
parent
4b88dac1e7
commit
8d1546d99a
3 changed files with 67 additions and 1 deletions
17
index.js
Normal file
17
index.js
Normal file
|
@ -0,0 +1,17 @@
|
|||
'use strict';
|
||||
|
||||
module.exports = (length = 80, character = '-') => {
|
||||
const line = Array(length).join(character[0]);
|
||||
|
||||
return {
|
||||
line,
|
||||
log: () => {
|
||||
console.log(line);
|
||||
},
|
||||
fence: (text) => {
|
||||
console.log(line);
|
||||
console.log(text);
|
||||
console.log(line);
|
||||
}
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue