
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
google-analytics-lite
Advanced tools
A lightweight google Analytics module.
Most other modules (such as universal-analytics
and electron-google-analytics
) are too large (more than 1MB) after packaging due to the import of module request
, these modules also do not support TypeScript
.
npm install google-analytics-lite
new GoogleAnalytics(tid: string, cid?: string, fetcher?: typeof fetch, root?: string)
import GoogleAnalytics from 'google-analytics-lite'
const ga = new GoogleAnalytics('UA-123456-1')
By editing gs.defaultValues
:
Object.assign(gs.defaultValues, {
an: 'My App',
aid: 'com.company.app'
})
ga.pageView('http://examples.com/a.html').then(console.log)
ga.event('audio', 'Play')
ga.exception('Audio play exception')
ga.social('facebook', 'like', 'http://example.com/myApp')
ga.post({ cn: 'xxx', cs: 'xxx' }) // ga.post(data: GAParameters)
If you need other protocols, please contact me through github issue! :)
import { assign, genUUID, random } from 'google-analytics-lite'
random(4) // Random string
genUUID() // Random UUID
assign(obj1, obj2) // Assign two objects
Shirasawa
FAQs
A lightweight google Analytics module.
The npm package google-analytics-lite receives a total of 0 weekly downloads. As such, google-analytics-lite popularity was classified as not popular.
We found that google-analytics-lite demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.