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: {
ntfy: {
type: "app",
app: "ntfy",
}
},
async run({steps, $}) {
const data = `Backup successful 😀`
return await axios($, {
method: "post",
url: `${this.ntfy.$auth.server}/test`,
headers: {
"Content-Type": "text/plain"
},
data,
})
},
})