Socket
Socket
Sign inDemoInstall

logkitty

Package Overview
Dependencies
59
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.6.1

2

build/android/adb.js

@@ -34,3 +34,3 @@ "use strict";

try {
(0, _child_process.execSync)(`'${adbPath}' logcat -c`);
(0, _child_process.execSync)(`${adbPath} logcat -c`);
} catch (error) {

@@ -37,0 +37,0 @@ throw new _errors.CodeError(_errors.ERR_ANDROID_CANNOT_CLEAN_LOGCAT_BUFFER, error.message);

@@ -91,4 +91,5 @@ "use strict";

type: 'string',
describe: 'Use custom path to ADB'
}).example('$0 android tag MyTag', 'Filter logs to only include ones with MyTag tag').example('$0 android tag MyTag -I', 'Filter logs to only include ones with MyTag tag and priority INFO and above').example('$0 android app com.example.myApp', 'Show all logs from com.example.myApp').example('$0 android match device', 'Show all logs matching /device/gm regex').example('$0 android app com.example.myApp -E', 'Show all logs from com.example.myApp with priority ERROR and above').example('$0 android custom *:S MyTag:D', 'Silence all logs and show only ones with MyTag with priority DEBUG and above')).command('ios <filter>', 'ios', yargs => yargs.command('tag <tags ...>', 'Show logs matching given tags', iosPriorityOptions).command('match <regexes...>', 'Show logs matching given patterns', iosPriorityOptions).command('all', 'Show all logs', iosPriorityOptions).demandCommand(1).example('$0 ios tag MyTag', 'Filter logs to only include ones with MyTag tag').example('$0 ios tag MyTag -i', 'Filter logs to only include ones with MyTag tag and priority Info and Error').example('$0 ios match device', 'Show all logs matching /device/gm regex')).demandCommand(1).help('h').alias('h', 'help').alias('v', 'version').version();
describe: 'Use custom path to adb',
nargs: 1
}).example('$0 android tag MyTag', 'Filter logs to only include ones with MyTag tag').example('$0 android tag MyTag -I', 'Filter logs to only include ones with MyTag tag and priority INFO and above').example('$0 android app com.example.myApp', 'Show all logs from com.example.myApp').example('$0 android match device', 'Show all logs matching /device/gm regex').example('$0 android app com.example.myApp -E', 'Show all logs from com.example.myApp with priority ERROR and above').example('$0 android custom *:S MyTag:D', 'Silence all logs and show only ones with MyTag with priority DEBUG and above')).command('ios <filter>', 'iOS', yargs => yargs.command('tag <tags ...>', 'Show logs matching given tags', iosPriorityOptions).command('match <regexes...>', 'Show logs matching given patterns', iosPriorityOptions).command('all', 'Show all logs', iosPriorityOptions).demandCommand(1).example('$0 ios tag MyTag', 'Filter logs to only include ones with MyTag tag').example('$0 ios tag MyTag -i', 'Filter logs to only include ones with MyTag tag and priority Info and Error').example('$0 ios match device', 'Show all logs matching /device/gm regex')).demandCommand(1).help('h').alias('h', 'help').alias('v', 'version').version();

@@ -137,2 +138,3 @@ const selectedAndroidPriorities = {

platform: platform,
adbPath: args.adbPath ? String(args.adbPath) : '',
priority: platform === 'android' ? (0, _utils.getMinPriority)(_api.AndroidPriority, selectedAndroidPriorities, _api.AndroidPriority.DEBUG) : (0, _utils.getMinPriority)(_api.IosPriority, selectedIosPriorities, _api.IosPriority.DEFAULT),

@@ -139,0 +141,0 @@ filter: createFilter

# Node API
## Example:
## Example
```ts

@@ -28,2 +29,3 @@ import {

```
## API

@@ -36,3 +38,3 @@

* `platform: 'android' | 'ios'` - Platform to get the logs from: uses `adb logcat` for Android and `xcrun simctl` + `log` for iOS simulator`.
* `adbPath?: string` - Custom path to ADB tool or `undefined` (used only when `platform` is `android`).
* `adbPath?: string` - Custom path to adb tool or `undefined` (used only when `platform` is `android`).
* `priority?: number` - Minimum priority of entries to show of `undefined`, which will include all entries with priority **DEBUG** (Android)/**DEFAULT** (iOS) or above.

@@ -58,3 +60,2 @@ * `filter?: FilterCreator` - The returned value from `makeTagsFilter`/`makeAppFilter`/`makeMatchFilter`/`makeCustomFilter` or `undefined`, which will include all entries (similar to `all` command in the CLI).

#### `makeMatchFilter(...regexes: RegExp[]): FilterCreator`

@@ -78,2 +79,2 @@

Takes an error and formats it to a string with ANSI escape codes for coloring.
Takes an error and formats it to a string with ANSI escape codes for coloring.
{
"name": "logkitty",
"version": "0.6.0",
"version": "0.6.1",
"description": "Display pretty Android and iOS logs without Android Studio or Console.app, with intuitive Command Line Interface.",

@@ -5,0 +5,0 @@ "keywords": [

# logkitty
[![Version][version]][package]
[![Version][version]][package]

@@ -16,3 +16,3 @@ [![PRs Welcome][prs-welcome-badge]][prs-welcome]

```bash
```sh
yarn global add logkitty

@@ -23,3 +23,3 @@ ```

```
```sh
yarn add -D logkitty

@@ -31,3 +31,3 @@ yarn logkitty --help

```bash
```sh
logkitty <platform> <command> [options]

@@ -40,3 +40,3 @@ ```

```bash
```sh
logkitty -h # prints available platforms and global options

@@ -66,3 +66,3 @@ logkitty android -h # prints commands and options for android

* platform `android`:
`tag`, `app`, `match` and `all` commands support additional priority filtering options (sorted by priority):

@@ -93,3 +93,3 @@

```
```sh
logkitty android tag ReactNativeJS

@@ -101,3 +101,3 @@ logkitty ios tag ReactNativeJS

```
```sh
logkitty android app com.example.myApplication -i

@@ -108,3 +108,3 @@ ```

```
```sh
logkitty android match CodePush

@@ -116,3 +116,3 @@ logkitty ios match CodePush

```
```sh
logkitty android all -e

@@ -124,3 +124,3 @@ logkitty ios all -e

```
```sh
logkitty android custom *:S my-tag:D

@@ -133,3 +133,2 @@ ```

<!-- badges (common) -->

@@ -136,0 +135,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc