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: {
tavily: {
type: "app",
app: "tavily",
}
},
async run({steps, $}) {
const data = {
"api_key": `${this.tavily.$auth.api_key}`,
"query": "What is Pipedream?",
"include_domains": ["pipedream.com"]
}
return await axios($, {
method: "post",
url: `https://api.tavily.com/search`,
data,
})
},
})