Skip to content

Commit

Permalink
+ updated
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Sep 23, 2018
1 parent c52ee9e commit 075b6b8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "9"
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ Install with NPM: ``npm i buteforcejs``

#### Syntax:
bruteforce('characters [list or string]', (result) => {
// Do something with result
if(/**RESULT WAS RIGHT**/) return true //Finish the bruteforce
})
// Do something with result
if(/** RESULT WAS RIGHT **/) return true //Finish the bruteforce
}, 5) // (maxLength < 1 | maxLength = undefined) => until callback returns true (standard)

#### Bruteforce until callback returns true (characters => string)
bruteforce('ABCabc', (result) => {
Expand Down

0 comments on commit 075b6b8

Please sign in to comment.