with Neutrino and Formatting?
Get the duration between two dates in days, hours, minutes, and seconds along with checking if they are the same.
Format a date string to another date string. For more examples on formatting, see the Sugar Date Format documentation.
The Neutrino API provides a set of tools for performing various utility functions over the web. Leveraging this API within Pipedream workflows enables you to automate tasks like email validation, bad word filtering, IP blocklisting, and data conversion. It's a Swiss Army knife for developers needing to ensure data integrity, security, and streamlined data processing within their applications.
import { axios } from "@pipedream/platform"
export default defineComponent({
props: {
neutrino: {
type: "app",
app: "neutrino",
}
},
async run({steps, $}) {
return await axios($, {
url: `https://neutrinoapi.net/email-validate`,
params: {
email: `YOUR_EMAIL_ADDRESS`,
"api-key": `${this.neutrino.$auth.api_key}`,
"user-id": `${this.neutrino.$auth.user_id}`,
},
})
},
})
export default defineComponent({
async run({ steps, $ }) {
const text = ' Hello world! ';
return text.trim()
},
})