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

plcrashreport-decoder

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

plcrashreport-decoder

A decoder for iOS/macOS crash reports generated by PLCrashReporter

latest
Source
npmnpm
Version
0.1.10
Version published
Maintainers
1
Created
Source

plcrashreport-decoder

A decoder for iOS/macOS crash reports generated by PLCrashReporter

badge

Installation

npm install plcrashreport-decoder --save

Usage

Module

// import
const CrashReport = require('plcrashreport-decoder');

// read crash report file
const fs = require('fs');
let buffer = fs.readFileSync('path/to/crashreport');

// create a CrashReport object. The constructor accepts Buffer, Array ([number]) and ArrayBuffer.
let cr = new CrashReport(buffer);

// get the decoded JSON
let decoded = cr.toJSON();

CLI

Please run npm link before using CLI.

pl-decode example.plcrash -t json

Parameters

-f: Format of decoded crash report. Can be default, string or json.

Browser

Include the minified JavaScript file in your HTML, and you will be able to use the CrashReport class.

<script src="dist/crashreport.min.js"></script>

Please see example.html for details.

Build

Run npm run build to build a minified UMD bundle.

Acknowledgement

License

The project is released under MIT license. Please see LICENSE for full terms.

Keywords

crashreport

FAQs

Package last updated on 15 Aug 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