This module was made in a state of unprecedented boredom. However it works perfectly and also functions as a nice demonstration of [mu.js](https://www.npmjs.com/package/mu.js).

## Install
```
npm i wordfind
```

## Use
Run _npm test_ or _node test.js_ which contains the same as below.

```js
var WordFind = require('wordfind')

/* find words that start with hook */
WordFind.startsWith('hook').then(words => {
	console.log(words)
}).catch(console.error)

/* what rhymes with orgasm? words that end with asm! */
WordFind.endsWith('asm').then(console.log).catch(console.error)

/* find any word that contains mania */
WordFind.contains('mania').then(words => {
	words.forEach(word => {
		console.log(`the word '${word}' contains 'mania' somewhere`)
	})
}).catch(console.error)
``` 

## output
```
[ 
  'hooknosed',
  'hooknoses',
  'hookworms',
  'hookiest',
  'hookless',
  'hooklets',
  'hooklike',
  'hooknose',
  'hookworm',
  'hookahs',
  'hookers',
  'hookeys',
  'hookier',
  'hookies',
  'hooking',
  'hooklet',
  'hookups',
  'hookah',
  'hookas',
  'hooked',
  'hooker',
  'hookey',
  'hookup',
  'hooka',
  'hooks',
  'hooky' 
]

[ 
  'nucleoplasm',
  'superorgasm',
  'deutoplasm',
  'enthusiasm',
  'hyaloplasm',
  'iconoclasm',
  'protoplasm',
  'sarcoplasm',
  'alloplasm',
  'cataplasm',
  'cytoplasm',
  'ectoplasm',
  'endoplasm',
  'germplasm',
  'idioplasm',
  'metaplasm',
  'periplasm',
  'piroplasm',
  'vasospasm',
  'axoplasm',
  'bioplasm',
  'chiliasm',
  'neoplasm',
  'phantasm',
  'pleonasm',
  'fantasm',
  'sarcasm',
  'chiasm',
  'orgasm',
  'chasm',
  'miasm',
  'plasm',
  'spasm' 
]

the word 'bibliomania' contains 'mania' somewhere
the word 'dipsomaniac' contains 'mania' somewhere
the word 'dipsomanias' contains 'mania' somewhere
the word 'egomaniacal' contains 'mania' somewhere
the word 'hypermanias' contains 'mania' somewhere
the word 'kleptomania' contains 'mania' somewhere
the word 'leishmanial' contains 'mania' somewhere
the word 'leishmanias' contains 'mania' somewhere
the word 'megalomania' contains 'mania' somewhere
the word 'monomaniacs' contains 'mania' somewhere
the word 'mythomaniac' contains 'mania' somewhere
the word 'mythomanias' contains 'mania' somewhere
the word 'nymphomania' contains 'mania' somewhere
the word 'pyromaniacs' contains 'mania' somewhere
the word 'dipsomania' contains 'mania' somewhere
the word 'egomaniacs' contains 'mania' somewhere
the word 'hypermania' contains 'mania' somewhere
the word 'hypomanias' contains 'mania' somewhere
the word 'leishmania' contains 'mania' somewhere
the word 'maniacally' contains 'mania' somewhere
the word 'monomaniac' contains 'mania' somewhere
the word 'monomanias' contains 'mania' somewhere
the word 'mythomania' contains 'mania' somewhere
the word 'pyromaniac' contains 'mania' somewhere
the word 'pyromanias' contains 'mania' somewhere
the word 'apimanias' contains 'mania' somewhere
the word 'egomaniac' contains 'mania' somewhere
the word 'egomanias' contains 'mania' somewhere
the word 'hypomania' contains 'mania' somewhere
the word 'monomania' contains 'mania' somewhere
the word 'pyromania' contains 'mania' somewhere
the word 'zoomanias' contains 'mania' somewhere
the word 'apimania' contains 'mania' somewhere
the word 'egomania' contains 'mania' somewhere
the word 'maniacal' contains 'mania' somewhere
the word 'zoomania' contains 'mania' somewhere
the word 'maniacs' contains 'mania' somewhere
the word 'maniac' contains 'mania' somewhere
the word 'manias' contains 'mania' somewhere
```