open-index/open-npm huggingface dataset:
npm package: @jfonx/console-utils
Description: View error information, log information, and more. at the Consol.
Author: Justkey
Latest version: 1.0.3

# console-utils

View error information, log information, and more. at the Consol.

## Installation

```sh
npm install @jfonx/console-utils
```

## Usage

```typescript
import { Output } from '@jfonx/console-utils';

Output.info('Hello word');
Output.error('Hello word');
Output.warning('Hello word');
Output.success('Hello word');
Output.clear(); //console.clear()
```
npm package: @jfonx/file-utils
Description: Allows you to perform specific operations on files
Latest version: 3.0.1

# file-utils

Allows you to perform specific operations on files

## Installation

```sh
npm install @jfonx/file-utils
```

## Usage

```typescript
import { findUpJsonFile, toObject, writeFile } from '@jfonx/file-utils';

/* Write a file on the disk */
writeFile({
  file: __dirname + '/filename.txt',
  content: 'I am programmer',
  force: true, // Force rewrite if the file exists
});

/* Read the contents of a JSON file and convert it to an object */
toObject(__dirname + '/tsconfig.json', true /* exit program if error */);

/* Looks for a json file recursively back and stops as soon as the file is found or the root of the hard drive is reached*/
const module = findUpJsonFile({
  filename: 'package.json' /* The desired JSON file */,
  isJson: true,
  rootDir: __dirname /* From this folder */,
});
console.log(module);
```