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

imweb-badjs

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

imweb-badjs

report with badjs based on simple!

  • 0.2.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
increased by33.33%
Maintainers
1
Weekly downloads
 
Created
Source

Simple

imweb-badjs lego version


imweb badjs log

Install

lego

$ lego install imweb-badjs --save

npm

$ npm install imweb-badjs --save

Usage

var imwebBadjs = require('imweb-badjs');
// use imwebBadjs

Api

  • @author herbertliu
  • @date 2013-02-25 version 0.2.3
  • @description badjs上报
  • @param msg {String} 上报错误信息
  • @param url {String} 该上报信息所属的文件路径
  • @param line {Number} 上报信息所属的文件行号,没有为0
  • @param smid {Number} 上报对应的monitor id,如果smid ===0 ,则只统计badjs,不上报monitor;如果没有该参数,则上报通用monitor id;如果smid === -1,window.onerror专用,会增加Script Error字段头
  • @param level {Number} 上报对应的级别 1 => debug(调试日志); 2 = > info(流水日志); 4 => error(错误日志)(默认值) ; 8 => fail(致命错误日志)
  • @example Badjs.init(bid,mid,min) 初始化badjs一些参数,mid,默认的业务上报Monitor id,min 是否上报浏览器简化信息;或者Badjs.init(bid,{'1' : 0,'2' : 0,'4' : 0, '8' : 0},min)
  • @example Badjs(msg,url,line,smid,level,min) badjs上报,上报字符串,地址,行号,Monitor属性id(可为空,即不报Monitor),上报级别;min,是否上报简略信息

Keywords

FAQs

Package last updated on 13 May 2015

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