New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@firesquad/widget

Package Overview
Dependencies
Maintainers
4
Versions
66
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@firesquad/widget

Firesquad Web Widget

latest
npmnpm
Version
3.0.0
Version published
Maintainers
4
Created
Source

Firesquad

Firesquad Widget

Guide

  • Install

Install

npm i @firesquad/widget --save
yarn add @firesquad/widget

React

on your index file:

import React, { useEffect } from 'react'
import Firesquad from '@firesquad/widget'
const appId = 'xxx' // Get your appId https://app.firesquad.io
const App = () => {
  useEffect(() => {
    Firesquad(appId)
  }, [])
}

Html

  • Add the script with your key (replace xxxx with your key)
<script src="https://unpkg.com/@firesquad/widget@latest/dist/index.js?key=xxxx"></script>

Example:


<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
  <script src="https://unpkg.com/@firesquad/widget@latest/dist/index.js?key=xxxx"></script>
</body>
</html>

@firesquad 2021

FAQs

Package last updated on 28 Jul 2022

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