open-index/open-npm huggingface dataset:
npm package: @rtpaulino/git-lib
Description: This library was generated with [Nx](https://nx.dev).
Latest version: 0.10.2

# git-lib

This library was generated with [Nx](https://nx.dev).

## Building

Run `nx build git-lib` to build the library.

## Running unit tests

Run `nx test git-lib` to execute the unit tests via [Vitest](https://vitest.dev/).
npm package: @rtprog/adoc-json-converter
Description: AsciiDoctor.js JSON Converter
Author: Ryszard Trojnacki
Latest version: 0.0.1

# adoc-json-converter
AsciiDoctor.js JSON Converter

## Installation
```shell
npm install @rtprog/adoc-json-converter
```

## Usage
```javascript
const Asciidoctor = require('asciidoctor.js');
const JSONConverter = require('@rtprog/adoc-json-converter');

const asciidoctor=Asciidoctor();
asciidoctor.ConverterFactory.register(new JSONConverter(), ['json']);

asciidoctor.load(doc, {
    backend: 'json',
    doctype: 'article',
}).convert();
```
npm package: @rtprog/canvg-loader
Description: SVG to Canvas draw function loader for Webpack
Author: Ryszard Trojnacki
Latest version: 0.0.3

# SVG to Canvas draw function loader for Webpack
Webpack plugin to load SVG files as CanvasRenderingContext2D draw function.

It uses [canvg](https://github.com/canvg/canvg) library for loading/parsing SVG files
but instead of rendering it to HTML5 canvas it returns a function with draw 
calls to [CanvasRenderingContext2D](https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D).

Exported function can be used to draw SVG on any canvas.

# Usage

Add loader to your project
```bash
npm install --save-dev @rtprog/canvg-loader
```

Configure webpack to use canvg-loader for SVG files
```javascript
export default {
    module: {
        rules: [
            {
                test: /\.svg$/,
                use: '@rtprog/canvg-loader',
            },
        ],
    },
}
```

Import SVG file and use it as draw function
```javascript
import image from './image.svg';

function drawImage(canvas) {
    const ctx = canvas.getContext('2d');
    image(ctx);
}

window.addEventListener('load', () => {
    const canvas = document.getElementById('canvas');
    drawImage(canvas);
});
```

# Usage in Gatsby
In order to use this loader in [Gatsby](https://www.gatsbyjs.com/) application You need to install is as
development dependency
```shell
npm install --save-dev @rtprog/canvg-loader
```
and configure Webpack. Configuring Webpack in Gatsby that is file `gatsby-node.js`:
```javascript
exports.onCreateWebpackConfig = ({ actions, getConfig, rules }) => {
    // Add canvg-loader
    actions.setWebpackConfig({
        module: {
            rules: [
                {
                    test: /\.svg$/,
                    use: '@rtprog/canvg-loader',
                },
            ],
        },
    })
    // Remove existing/default svg loader
    const cfg=getConfig();
    const imgsRule = rules.images()
    const newUrlLoaderRule = {
        ...imgsRule,
        test: new RegExp(imgsRule.test.toString().replace('svg|', '').slice(1, -1))
    }

    cfg.module.rules = [
        // Remove the base url-loader images rule entirely
        ...cfg.module.rules.filter(rule => {
            if (rule.test) {
                return rule.test.toString() !== imgsRule.test.toString()
            }
            return true
        }),
        // Put it back without SVG loading
        newUrlLoaderRule
    ]
    actions.replaceWebpackConfig(cfg)
}
```
npm package: @rtprog/json-string
Description: Library for passing JSON structures in plain string.
Author: Ryszard Trojnacki
Latest version: 0.0.2

# json-string
Library for passing JSON structures in plain string.

This library was created for the purpose of creating 
JSON [Converter](https://docs.asciidoctor.org/asciidoctorj/latest/write-converter/) 
for [AsciiDoctorJ](https://asciidoctor.org/docs/asciidoctorj/).
By default, AsciiDoctorJ works with plain text (`string`) and does not support
other types are not supported by converters.

The idea is to espace JSON string with non-printable characters (start: `\0`, end:`\u0001`)
and then parse it back to JSON object.

This library provides two methods:
- `parse`,
- `stringify`.

## Installation
```shell
npm install @rtprog/json-string
```

## Usage
```javascript
const { parse, stringify } = require('json-string');

const str='Plain string' + stringify({a: 1, b: '2', c: [3, 4, 5]}) + '. More text';

console.log(str);
// Plain string{"a":1,"b":"2","c":[3,4,5]}. More text
console.log(parse(str));
// [ 'Plain string', { a: 1, b: '2', c: [ 3, 4, 5 ] }, '. More text' ]
```
npm package: @rtsao/cycle-dom-stylematic
Description: The standard DOM Driver for Cycle.js, based on virtual-dom, and other helpers
Author: Andre Staltz
Latest version: 9.4.1

# Cycle DOM

A collection of Cycle drivers to enable interaction with the DOM. It includes a DOM Driver, an HTML Driver, both working on top of `virtual-dom`.

[Read the docs](https://github.com/cyclejs/dom/blob/master/docs/api.md) and check the examples.

[![npm version](https://badge.fury.io/js/%40cycle%2Fdom.svg)](http://badge.fury.io/js/%40cycle%2Fdom)

```
npm install @cycle/dom
```

## Why are Issues unavailable?

We use only one repository for issues. [**Open the issue at Cycle Core repo.**](https://github.com/cyclejs/core/issues)

## Browser support

These are the browsers we officially support currently. Cycle.js may not work (or work partially) in other browsers.

[![Sauce Test Status](https://saucelabs.com/browser-matrix/cyclejs-dom.svg)](https://saucelabs.com/u/cyclejs-dom)

## LICENSE

[The MIT License (MIT)](https://github.com/cyclejs/dom/blob/master/LICENSE)

- - -

[![Build Status](https://travis-ci.org/cyclejs/cycle-dom.svg?branch=master)](https://travis-ci.org/cyclejs/dom)
[![Dependency Status](https://david-dm.org/cyclejs/dom.svg)](https://david-dm.org/cyclejs/dom)
[![devDependency Status](https://david-dm.org/cyclejs/dom/dev-status.svg)](https://david-dm.org/cyclejs/dom#info=devDependencies)