UNPKG
@microlink/recipes
Version:
latest (1.8.1)
1.8.1
1.8.0
1.7.0
1.6.2
1.6.0
1.5.0
1.4.0
1.3.6
1.3.5
1.3.4
1.3.3
1.3.2
1.3.1
1.3.0
1.2.8
1.2.7
1.2.6
1.2.5
1.2.4
1.2.3
1.2.2
1.2.1
1.2.0
1.1.9
1.1.8
1.1.7
1.1.6
1.1.5
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.0.32
0.0.31
0.0.30
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.23
0.0.22
0.0.21
0.0.20
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.6
Build something with just a few of lines
microlink.io/recipes
microlinkhq/recipes
@microlink/recipes
/
recipes
/
by-provider
/
spotify.js
18 lines
(13 loc)
•
296 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
'use strict'
const
mql =
require
(
'@microlink/mql'
)
module
.
exports
=
async
(url, opts) => {
const
result =
await
mql
(url, {
audio
:
true
, ...opts })
return
result }
module
.
exports
.
meta
= {
name
:
'Spotify'
,
examples
: [
'https://open.spotify.com/track/5kn2FMZoBVClbA9CV7w3k5'
] }