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

@tng/gta

Package Overview
Dependencies
Maintainers
5
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tng/gta

TNG GTA ==============

  • 1.0.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
5
Weekly downloads
 
Created
Source

TNG GTA

安装

yarn add @tng/gta

使用

const GTA = require('@tng/gta')
const gta = new GTA({url:'https://gta.teambition.net/v1/track/', token: '1234567890'})

// send方法 (get)
// @return promise
console.log(yield gta.send('event', { param: 'abc' }))  
// {event: 1}


// 指定 options
const gta = new GTA()
const options = { url: 'https://gta.teambition.net/v1/track/', token: '1234567890'})
console.log(yield gta.send('event', { param: 'abc' }, options))

// get/post方法
const gta = new GTA()
const options = { url: 'https://gta.teambition.net/v1/track/'})
yield gta.get('event', { token: '1234567890', params: 'abc' }, options)
yield gta.post('event', { token: '1234567890', params: 'abc' }, options)

FAQs

Package last updated on 06 Jul 2018

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