open-index/open-npm huggingface dataset:
npm package: @jamsch/normalize-svg-path
Description: Convert all segments in a path to curves
Author: Jake Rosoman
Latest version: 1.1.2

# normalize-svg-path [![build](https://travis-ci.org/jkroso/normalize-svg-path.svg?branch=master)](https://travis-ci.org/jkroso/normalize-svg-path)


  Convert all segments in a path to curves. Usefull if you intend to animate one shape to another. By defining all segments with curves instead of a mix of lines, arcs, and curves tweening becomes much simpler. It could also help you rewrite your SVG code according to the principles of [narcissistic design](//vimeo.com/77199361).

## Usage

[![npm install normalize-svg-path](https://nodei.co/npm/normalize-svg-path.png?mini=true)](https://npmjs.org/package/normalize-svg-path/)

```js
import parse from 'parse-svg-path'
import abs from 'abs-svg-path'
import normalize from 'normalize-svg-path'

const segments = normalize(abs(parse('M0 0L10 10A10 10 0 0 0 20 20Z')))
```

## API

### normalize(path)

  Translate each segment in `path` to an equivalent cubic bézier curve. The input `path` must be [absolute](//github.com/jkroso/abs-svg-path).

```js
normalize([['L',1,2]]) // => [['C',0,0,1,2,1,2]]
```
npm package: @jamsch/react-native-toastify
Description: React Native stubs for react-toastify
Author: jamsch
Latest version: 0.1.2

# @jamsch/react-native-toastify

React Native stubs for the library `react-toastify`. Please note that not all exports are handled.

## Prerequisites

- react-native-paper
- react-native-vector-icons (specifically MaterialIcons included in your app's bundle)

## Installation

```sh
npm install @jamsch/react-native-toastify
```

## Usage

```js
import React from 'react';
import { Text, TouchableOpacity, View } from 'react-native';
import { PaperProvider } from 'react-native-paper';
import { toast, ToastContainer } from '@jamsch/react-native-toastify';

export default function App() {
  return (
    <View>
      {/** Required for theming & Snackbar element */}
      <PaperProvider>
        {/** This element will render the toast */}
        <ToastContainer position="bottom-left" />

        {/** Somewhere else in your app */}
        <TouchableOpacity onPress={() => toast.success('Success!')}>
          <Text>Success toast</Text>
        </TouchableOpacity>
        <TouchableOpacity onPress={() => toast.info('Info!')}>
          <Text>Info toast</Text>
        </TouchableOpacity>
      </PaperProvider>
    </View>
  );
}
```

## Usage in monorepos

If you're already using `react-toastify` in a shared monorepo, you may want to install `babel-plugin-module-resolver` and alias `react-toastify` to this library on your React Native project.

```js
// babel.config.js
module.exports = {
  plugins: [
    [
      'module-resolver',
      {
        alias: {
          'react-toastify': '@jamsch/react-native-toastify',
        },
      },
    ],
  ],
};
```

Alternatively, you can configure `resolver.extraNodeModules` in `metro.config.js`

```js
// metro.config.js
module.exports = {
  // ....
  resolver: {
    extraNodeModules: new Proxy(
      {},
      {
        get: (target, name) => {
          if (name === 'react-toastify') {
            return path.join(
              process.cwd(),
              `node_modules/@jamsch/react-native-toastify`
            );
          }
          return path.join(process.cwd(), `node_modules/${name}`);
        },
      }
    ),
  },
};
```

## Contributing

See the [contributing guide](CONTRIBUTING.md) to learn how to contribute to the repository and the development workflow.

## License

MIT