Node package manager
Emit new event with the latest count of downloads for an npm package. See the documentation.
Emit new event when a new version of an npm package is published. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
short_menu: {
type: "app",
app: "short_menu",
}
},
async run({steps, $}) {
const data = {
"destinationUrl": "https://pipedream.com/explore?via=go",
"domain": `${this.short_menu.$auth.custom_domain}`,
"tags": [
{
"name": "mytag"
}
]
}
return await axios($, {
method: "post",
url: `https://api.shortmenu.com/links`,
headers: {
"x-api-key": `${this.short_menu.$auth.api_key}`,
},
data,
})
},
})