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
Reads in a piece of text and distills the main points. See the documentation
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
tldr: {
type: "app",
app: "tldr",
}
},
async run({steps, $}) {
const data = {
"responseLength": 1,
"responseStyle": "Funny",
"inputText": "Lorem ipsum dolor sit amet..."
}
return await axios($, {
method: "post",
url: `https://runtldr.com/apis/v1/summarize`,
headers: {
Authorization: `Bearer ${this.tldr.$auth.api_key}`,
"Content-Type": `application/json`,
},
data,
})
},
})