Tiny Klaviyo list subscribe utility.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
README.md
index.js
package-lock.json
package.json

README.md

klaviyo-subscribe

Tiny Klaviyo list subscribe utility. 320 bytes gzipped.

Install

npm i klaviyo-subscribe --save

Usage

import subscribe from 'klaviyo-subscribe'

const listId = 'JFDd6y'
const email = 'email@email.com'

subscribe(listId, email, {
  $first_name: 'Eric',
  // any optional traits
}).then(response => {})

License

MIT License © Eric Bailey