Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed character counter #172

Merged
merged 1 commit into from
Sep 20, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.