Let there be lines!

This commit is contained in:
Josh Sherman 2018-03-23 16:46:41 -05:00
parent 4b88dac1e7
commit 8d1546d99a
No known key found for this signature in database
GPG key ID: 55B058A80530EF22
3 changed files with 67 additions and 1 deletions

17
index.js Normal file
View 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);
}
};
};