Security News
Cloudflare Adds Security.txt Setup Wizard
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
@highoutput/analytics
Advanced tools
npm install @highoutput/analytics
import Analytics from '@highoutput/analytics';
const analytics = new Analytics({
project: 'studio',
token: 'secret',
});
// Create or update user
analytics.setAccount({
accountId: 'unique-id-123',
body: {
firstname: 'juan',
lastname: 'bautista',
email: 'juan.bautista@mail.com',
created: new Date(),
}
});
// Create an event.
// Omit `accountId` if event does not need to be associated to user.
analytics.createEvent({
eventName: 'CREATE_POST',
accountId: 'unique-id-123',
body: {
postType: 'SOME_POST_TYPE',
platformUsed: 'web',
},
});
Returns a new analtyics
instance.
Type: object
Type: string
Unique name of your project.
Type: string
Token from Mixpanel.
Analytics
instance.
Create or update user details to. Only the accountId
is required.
Unique identifier of the user. In Mixpanel, this will appear as Distinct ID.
Details of the user. The firstname
, lastname
, email
, and created
are predefined properties but are not required. If created
is omitted, it defaults to new Date()
.
Any additional custom properties can be added. Values with types of Buffer
or ObjectID
are serialized into string using bs58.
Note: The corresponding request to Mixpanel is added into a queue.
Stores an event to Mixpanel.
Note: The corresponding request to Mixpanel is added into a queue.
Type: string
Name of the event.
Type: string
User associated to the event. If omitted, the event created will not be associated to any user.
Type: object
Any properties relevant to the event. Values with types of Buffer
or ObjectID
are serialized into string using bs58.
Clears the queue and waits for the pending request to Mixpanel to finish.
FAQs
Analytics
We found that @highoutput/analytics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Cloudflare has launched a setup wizard allowing users to easily create and manage a security.txt file for vulnerability disclosure on their websites.
Security News
The Socket Research team breaks down a malicious npm package targeting the legitimate DOMPurify library. It uses obfuscated code to hide that it is exfiltrating browser and crypto wallet data.
Security News
ENISA’s 2024 report highlights the EU’s top cybersecurity threats, including rising DDoS attacks, ransomware, supply chain vulnerabilities, and weaponized AI.