Skip to content

Commit

Permalink
Merge pull request #172 from IvanMathy/feat/charCounter
Browse files Browse the repository at this point in the history
Fixed character counter
  • Loading branch information
IvanMathy authored Sep 20, 2020
2 parents 00f8804 + a317879 commit bc323fc
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
8 changes: 6 additions & 2 deletions Boop/Boop/scripts/CountCharacters.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,12 @@
}
**/


const { size } = require('@boop/lodash.boop')

function main(input) {

input.postInfo(`${input.text.length} characters`)
input.postInfo(`${size(input.text)} characters`)

}
}

24 changes: 14 additions & 10 deletions Boop/Boop/scripts/lib/lodash.boop.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Boop/Documentation/Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Boop ships with a couple of modules, with the prefix `@boop/`, which you can use
The built in lodash module was created with the following command and only includes a few functions and their direct dependencies:

```bash
$ lodash include=camelCase,deburr,escapeRegExp,kebabCase,snakeCase,startCase
$ lodash include=camelCase,deburr,escapeRegExp,kebabCase,snakeCase,startCase,size
```

If you'd like to add more functions, feel free to rebuild with additional parameters and submit a PR.

0 comments on commit bc323fc

Please sign in to comment.