New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

posthog-node

Package Overview
Dependencies
Maintainers
5
Versions
79
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

posthog-node - npm Package Compare versions

Comparing version 1.3.0 to 2.0.0-alpha1

index.ts

102

package.json
{
"name": "posthog-node",
"version": "1.3.0",
"description": "PostHog Node.js integration",
"license": "MIT",
"repository": "PostHog/posthog-node",
"author": {
"name": "PostHog",
"email": "hey@posthog.com",
"url": "https://posthog.com"
},
"engines": {
"node": ">=4"
},
"size-limit": [
{
"limit": "25 KB",
"path": "index.js"
}
],
"scripts": {
"dependencies": "yarn",
"size": "size-limit",
"test": "nyc ava tests/*.js",
"report-coverage": "nyc report --reporter=lcov > coverage.lcov && codecov",
"format": "prettier --write ."
},
"files": [
"index.js",
"index.d.ts",
"event-validation.js",
"cli.js",
"feature-flags.js"
],
"bin": {
"posthog": "cli.js"
},
"keywords": [
"posthog",
"stats",
"analysis",
"funnels"
],
"dependencies": {
"axios": "0.24.0",
"axios-retry": "^3.1.9",
"component-type": "^1.2.1",
"join-component": "^1.1.0",
"md5": "^2.3.0",
"ms": "^2.1.3",
"remove-trailing-slash": "^0.1.1",
"uuid": "^8.3.2"
},
"devDependencies": {
"ava": "^3.15.0",
"basic-auth": "^2.0.1",
"body-parser": "^1.17.1",
"codecov": "^3.0.0",
"commander": "^2.9.0",
"delay": "^4.2.0",
"express": "^4.15.2",
"nyc": "^14.1.1",
"pify": "^4.0.1",
"prettier": "^2.3.1",
"sinon": "^7.3.2",
"size-limit": "^1.3.5",
"snyk": "^1.171.1"
}
"name": "posthog-node",
"version": "2.0.0-alpha1",
"description": "PostHog Node.js integration",
"repository": "PostHog/posthog-node",
"scripts": {
"prepublish": "cd .. && yarn build"
},
"engines": {
"node": ">=10"
},
"license": "MIT",
"author": {
"name": "PostHog",
"email": "hey@posthog.com",
"url": "https://posthog.com"
},
"main": "lib/index.cjs.js",
"module": "lib/index.esm.js",
"types": "lib/index.d.ts",
"dependencies": {
"undici": "^5.8.0"
},
"devDependencies": {
"@types/node": "^18.0.0",
"commander": "^9.3.0"
},
"keywords": [
"posthog",
"stats",
"analysis",
"funnels"
],
"bin": {
"posthog": "cli.js"
}
}

@@ -1,26 +0,11 @@

# PostHog Node.js Library
# PostHog Node.js
[![npm package](https://img.shields.io/npm/v/posthog-node?style=flat-square)](https://www.npmjs.com/package/posthog-node)
[![MIT License](https://img.shields.io/badge/License-MIT-red.svg?style=flat-square)](https://opensource.org/licenses/MIT)
> 🚧 This is a WIP. Currently the only officially supported way of using PostHog on the web is [posthog-node](https://github.com/PostHog/posthog-node)
Please see [PostHog Docs](https://posthog.com/docs).
Specifically, [Node.js library details](https://posthog.com/docs/libraries/node).
Please see the main [PostHog docs](https://www.posthog.com/docs).
## Releasing a new version
Specifically, the [Node.js integration](https://posthog.com/docs/integrate/server/node) details.
Just bump up `version` in `package.json` on the main branch and the new version will be published automatically.
It's advised to use `bump patch/minor/major` label on PRs - that way the above will be done automatically
when the PR is merged.
Courtesy of GitHub Actions.
## Thanks
This library is largely based on the `analytics-node` package.
## Questions?
### [Join our Slack community.](https://posthog.com/slack)
### [Join our Slack community.](https://join.slack.com/t/posthogusers/shared_invite/enQtOTY0MzU5NjAwMDY3LTc2MWQ0OTZlNjhkODk3ZDI3NDVjMDE1YjgxY2I4ZjI4MzJhZmVmNjJkN2NmMGJmMzc2N2U3Yjc3ZjI5NGFlZDQ)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc