Update examples
This commit is contained in:
parent
0356531c4f
commit
29a35b59d9
File diff suppressed because it is too large
Load Diff
9
examples/sanitizeDiscoverParams.js
Normal file
9
examples/sanitizeDiscoverParams.js
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
const bcfetch = require('../');
|
||||||
|
|
||||||
|
const params = {
|
||||||
|
genre: 'ambient'
|
||||||
|
}
|
||||||
|
|
||||||
|
bcfetch.sanitizeDiscoverParams(params).then( results => {
|
||||||
|
console.log(results);
|
||||||
|
});
|
7
examples/sanitizeDiscoverParams_output.txt
Normal file
7
examples/sanitizeDiscoverParams_output.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
{ genre: 'ambient',
|
||||||
|
sortBy: 'top',
|
||||||
|
page: 0,
|
||||||
|
subgenre: 'all-ambient',
|
||||||
|
time: 0,
|
||||||
|
location: '0',
|
||||||
|
format: 'all' }
|
Loading…
Reference in New Issue
Block a user