This is a template for a "fresh" node typescript project that uses the @segment/analytics-node package.
nvm use && yarn install
export WRITEKEY=<YOUR_WRITEKEY>
yarn test
Clone repo
git clone git@github.com:segmentio/analytics-next.git ~/projects/analytics-next
Link the packages locally
yarn link ~/projects/analytics-next/packages/node
yarn add @segment/analytics-node@latest