Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chewit

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chewit

Node module for Chew Analytics

  • 2019.7.23
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

chewit

INC download count npm version

Analytics you can count on

Installation

$ npm i chewit -S

Note that this module requires an account with Chew, currently in alpha.

Features

  • namespaced modules: just use what you need!
  • server-side analytics: no need to muddy up your beautiful front-end with tracking snippets!
  • super simple: less than 3 lines of code on your part, wonderful!

Examples

Express

const chew = require("chewit/express");

const app = express()
  // ...after setting views, body parsing, &c
  .use(chew("YOUR-SITE-ID"));

// Make sure Chew is the very last middleware in your app.
// You'll get a lot of nonsense in your analytics otherwise.
// Working on a fix for this.

Fastify

fastify.register(require("chewit/fastify"), {
  id: "YOUR-SITE-ID"
});

Note

This module follows ChronVer, visit this site for more info.

FAQs

Package last updated on 23 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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