open-index/open-npm huggingface dataset:
npm package: @gera2ld/deepdiff
Description: ![NPM](https://img.shields.io/npm/v/@gera2ld/deepdiff.svg) ![License](https://img.shields.io/npm/l/@gera2ld/deepdiff.svg) ![Downloads](https://img.shields.io/npm/dt/@gera2ld/deepdiff.svg)
Latest version: 0.3.0

# @gera2ld/deepdiff

![NPM](https://img.shields.io/npm/v/@gera2ld/deepdiff.svg)
![License](https://img.shields.io/npm/l/@gera2ld/deepdiff.svg)
![Downloads](https://img.shields.io/npm/dt/@gera2ld/deepdiff.svg)

Deep difference JSON objects.

## Installation

```sh
$ yarn add @gera2ld/deepdiff
```

## Usage

```js
import { deepdiff } from '@gera2ld/deepdiff';

console.log(deepdiff({
  a: [1, 2, 3, 5],
  b: 1,
}, {
  a: [2, 3, 4, 5],
  b: 2,
}));
// -> [
//   { op: 'delete', path: '/a/0', oldVal: 1 },
//   { op: 'insert', path: '/a/3', newVal: 4 },
//   { op: 'replace', path: '/b', oldVal: 1, newVal: 2 },
// ]

// Custom hashObject
console.log(deepdiff({
  a: [1, 2, 3, 5],
  b: 1,
}, {
  a: [2, 3, 4, 5],
  b: 2,
}, {
  hashObject: () => 'all same hash',
}));
// -> []
```
npm package: @gera2ld/format-json
Description: Format JSON in different flavors
Author: Gerald
Latest version: 0.3.0

# @gera2ld/format-json

![NPM](https://img.shields.io/npm/v/@gera2ld/format-json.svg)
![License](https://img.shields.io/npm/l/@gera2ld/format-json.svg)
![Downloads](https://img.shields.io/npm/dt/@gera2ld/format-json.svg)

Format JSON in different flavors.

## Features

- Format as JSON or JavaScript, either compact or indented
- Highlight nodes by changing the output on render

## Installation

```sh
$ yarn add @gera2ld/format-json
```

## Usage

```js
import { format, ItemTypes } from '@gera2ld/format-json';

const data = {/* … */};
const jsonOptions = {
  indent: 0,
  quoteAsNeeded: false,
  quote: '"',
  trailing: false,
  template: false,
};
console.log('format as JSON:', format(data, jsonOptions));

const jsOptions = {
  indent: 2,
  quoteAsNeeded: true,
  quote: '\'',
  trailing: true,
  template: true,
};
console.log('format as JavaScript', format(data, jsOptions));

const highlightOptions = {
  onData(item) {
    // if the property name is 'highlight', wrap it with `<em>...</em>`
    if (item.path[item.path.length - 1] === 'highlight' && item.type === ItemTypes.KEY) {
      item.data = [
        { value: '<em>' },
        ...item.data,
        { value: '</em>' },
      ];
    }
  },
};
console.log('highlight values', format(data, highlightOptions));
```
npm package: @gera2ld/gatsby-remark-emoji
Description: ![NPM](https://img.shields.io/npm/v/@gera2ld/gatsby-remark-emoji.svg) ![License](https://img.shields.io/npm/l/@gera2ld/gatsby-remark-emoji.svg) ![Downloads](https://img.shields.io/npm/dt/@gera2ld/gatsby-remark-emoji.svg)
Author: Gerald
Latest version: 0.2.0

# @gera2ld/gatsby-remark-emoji

![NPM](https://img.shields.io/npm/v/@gera2ld/gatsby-remark-emoji.svg)
![License](https://img.shields.io/npm/l/@gera2ld/gatsby-remark-emoji.svg)
![Downloads](https://img.shields.io/npm/dt/@gera2ld/gatsby-remark-emoji.svg)

This is a plugin for gatsby-plugin-remark to replace `:emoji:` short names with UTF-8 emoji icons.

It utilizes [emoji-js](https://github.com/iamcal/js-emoji) under the hood.

## Installation

```bash
$ npm i @gera2ld/gatsby-remark-emoji
```

## Usage

Add to `gatsby-config.js`:

```js
  plugins: [      
    '@gera2ld/gatsby-remark-emoji',
  ]

  // or

  plugins: [      
    {
      resolve: '@gera2ld/gatsby-remark-emoji',
      options, // see below
    },
  ]
```

## Options

Options will be assigned to `EmojiConvertor` instance, roughly the same as:

```js
const emoji = new EmojiConvertor();
Object.assign(emoji, pluginOptions);
```

See [emoji-js](https://github.com/iamcal/js-emoji) for more details.

The default options are:

```js
{
  replace_mode: 'unified',
}
```