Socket
Book a DemoInstallSign in
Socket

@souranalytics/js

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@souranalytics/js

JavaScript library for Pickle

0.0.2
unpublished
latest
npmnpm
Version published
Maintainers
1
Created
Source
Pickle

@souranalytics/js

Official Pickle library for JavaScript.

Quickstart

Install

Yarn

yarn add @souranalytics/js

NPM

npm install @souranalytics/js

Basic usage

import { Pickle } from '@souranalytics/js'

const pickle = new Pickle('YOUR_API_KEY')

await pickle.identify('101', {
  planet: 'Earth'
})

await pickle.event('sign_in', {
  source: 'web'
})

await pickle.view('Sign in', {
  source: 'web'
})

Docs

Init

const pickle = new Pickle('YOUR_API_KEY')
ParameterTypeRequiredDescription
keystringYesPickle app key

Identifying users

pickle.identify(id, data?, meta?)
ParameterDefault valueTypeRequiredDescription
id-stringYesUser id
data{}JsonNoProperties
meta{}JsonNoMeta

Sending events

pickle.event(name, data?, meta?)
ParameterDefault valueTypeRequiredDescription
name-stringYesEvent name
data{}JsonNoProperties
meta{}JsonNoMeta

Recording views

pickle.view(name, data?, meta?)
ParameterDefault valueTypeRequiredDescription
name-stringYesView name
data{}JsonNoProperties
meta{}JsonNoMeta

Changelog

0.0.1

  • Initial release

FAQs

Package last updated on 19 Oct 2021

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.