open-index/open-npm huggingface dataset:
npm package: @kironeducation/flow-junit-transformer
Description: Transform JSON output of a flow typecheck into JUnit XML format
Author: hendrikniemann
Latest version: 0.3.0

# flow-junit-transformer

Transform JSON output of a flow typecheck into JUnit XML format!

At [Kiron Open Higher Education](https://kiron.ngo) our test results are reported in the JUnit test format to be displayed by our CI environment. While Jest and ESLint can be configured easily to output the JUnit XML format, flow is not able to provide this format. Instead flow can report in a custom JSON format. This utility package takes the flow output from `stdin` and returns a JUnit complaint result in the `stdout`.

## Installation

```
yarn add @kironeducation/flow-junit-transformer
```

## Usage

To let flow report in JUnit format simply pipe the result of the `flow check` command through the utility library:

```
flow check --json | flow-junit-transformer
```

With `flow-bin` and `flow-junit-transformer` in your `devDependencies` it is more likely to look like this:

```
yarn --silent flow check --json | yarn --silent flow-junit-transformer > /results/flow-raw.json
```
npm package: @kirpa/nested-router-switch
Description: Router for nested react routing
Author: KirpaK
Latest version: 1.0.1

# Nested Router Switch

Router for nested React routing.
Adds a route prefix to the path.

# Introdaction

### Installation

Install Package for Project

```sh
$ npm install @kirpa/nested-router-switch --save
```

Install the package globally

```sh
$ npm install @kirpa/nested-router-switch -g
```

### Usage

```javascript
import React from "react";
import { Route, Redirect, Switch } from "react-router";
import NestedSwitch, { NestedRouter } from "@kirpa/nested-router-switch";

const ProductRouter = props => (
  <NestedRouter {...props}>
    <Route path="/create" component={() => "create"} />
    <Route path="/details/:id" component={({ match }) => `details id:${match.params.id}`} />
    <Redirect from="*" to="/create" />
  </NestedRouter>
);

const CustomProductRouter = ({ match: { path } }) => (
  <NestedSwitch route={`product/${path}`}>
    <Route path="/create" component={() => "custom create"} />
    <Route path="/details/:id" component={({ match }) => `custom details id:${match.params.id}`} />
    <Redirect from="*" to="/create" />
  </NestedSwitch>
);

export default () => (
  <Switch>
    <Route path="/products" component={() => "products"} />
    <Route path="/product" component={ProductRouter} />
    <Route path="/custom" component={CustomProductRouter} />
  </Switch>
);
```

## License

MIT