From 149eefb0e850bba72a472ff3fd2ff69d712f8964 Mon Sep 17 00:00:00 2001 From: Kai Date: Tue, 23 Feb 2021 10:09:59 +0100 Subject: [PATCH] Added options You can pass in options now The first option is case You can make SCREAMING_SNAKE (default) Kebab ({ case: kebab }) Emoji ({ case: emoji }) --- main.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/main.js b/main.js index 785c0a2..72a2403 100644 --- a/main.js +++ b/main.js @@ -1,7 +1,13 @@ 'use strict'; -console.shit = function shit() { - console.log('SHIT'); +console.shit = function shit(options) { + let logWord = 'SHIT'; + if (options.case === 'kebab') { + logWord = 'shit'; + } else if (options.case === 'emoji') { + logWord = '💩'; + } + console.log(logWord); }; export default console.shit;