Mocking Spongebob generator
You can also use this generator as an API at
http://spongebob.jocolina.com/generate
like so:
let query_params = top: 'lolilol' bottom: 'line bottom'; let request_params = https: false host: 'spongebob.jocolina.com' path: '/generate' + querystring method: 'GET'
Roadmap
- Add multiline support (2 lines)
Installation
npm i mocking-spongebob
Usage
With promise syntax:
const generator = ; ;
With await syntax
const generator = ; let dataurl = await ;return `<img src=""></img>`;
Options
This generator will automatically randomize upper and lower case letters on your strings. However, you can pass an options
object to avoid this behaviour:
Generator signature is generator(String, String, Object)
;
Options:
randomizeCase: Bool