open-index/open-npm huggingface dataset:
npm package: @seedrs/bundle-script-tag-plugin
Description: A webpack plugin that generates a script that loads your main bundle
Author: tech@seedrs.com
Latest version: 1.0.3

<div align="center">
  <a href="https://webpack.js.org/">
    <img width="200" height="200" vspace="" hspace="25" src="https://cdn.rawgit.com/webpack/media/e7485eb2/logo/icon-square-big.svg">
  </a>
  <h1>bundle-script-tag-plugin</h1>
</div>


This plugin creates a small script that will generate a script tag
which then loads your main bundle. This allows your webpack generated
bundles to be included on other webpages. Useful for adding react
based components to legacy pages, or any other kind of script that you
want to embed or make available externally.

### Configuration

#### Minimal example

```js
module.exports = {
  plugins: [
    new BundleScriptTagPlugin.default({
      // The prefix name given to your generated script
      prefix: 'bundle',
      // Where the script should be output to
      output: './build',
      // The public path of the script defaults to the below value
      publicPath: '//',
      // This function should return the script code that you want
      // to output, shown is the default output
      content: assetPath => (
        `var n = document.createElement(\'script\');
         n.src = '${assetPath}';document.body.appendChild(n);
        `
      )
    })
  ]
};
```

Including the below snippet in your html page would then load the
generated script which in turn loads your webpack produced bundle.

```html
<script src="/bundle.js"></script>
```

This gives you a static link to your embeddable script while not
sacrificing long term caching on the larger application bundle.
npm package: @seedrs/eslint-config-seedrs-react
Description: Seedrs eslint config for React
Author: tech@seedrs.com
Latest version: 1.1.0

# Seedrs React eslint config

This is the Seedrs React eslint configuration. This
configuration should be used in all React projects and can be
extended if needed.

It borrows heavily from [eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) 
React style guide but with some differences.

## Rules

The documentation for the following list of applied rules can be found in the
[yannickcr/eslint-plugin-react](https://github.com/yannickcr/eslint-plugin-react) rep

1. react/jsx-key
2. react/jsx-no-comment-textnodes
3. react/jsx-no-duplicate-props
4. react/jsx-no-target-blank
5. react/jsx-no-undef
6. react/jsx-uses-react
7. react/jsx-uses-vars
8. react/no-children-prop
9. react/no-danger-with-children
10. react/no-deprecated
11. react/no-direct-mutation-state
12. react/no-find-dom-node
13. react/no-is-mounted
14. react/no-render-return-value
15. react/no-string-refs
16. react/no-unescaped-entities
17. react/no-unknown-property
18. react/prop-types
19. react/react-in-jsx-scope
20. react/require-render-return
npm package: @seedrs/redux-sagas
Description: A collection of useful, reusable redux-sagas
Author: tech@seedrs.com
Latest version: 1.5.0

## @seedrs/redux-sagas

[![npm version](https://badge.fury.io/js/%40seedrs%2Fredux-sagas.svg)](https://badge.fury.io/js/%40seedrs%2Fredux-sagas) [![Build status](https://badge.buildkite.com/d3580e40ed2858a737c15677c44ddd5f2bc5636f0d0cef5422.svg)](https://buildkite.com/seedrs/redux-sagas) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

> A package for reusable sagas.

### Setup

```bash
# With yarn (preferred)
yarn add @seedrs/redux-sagas
```

```bash
npm i @seedrs/redux-sagas --save
```

### Usage

To use the sagas, you can import them as named imports.

For example:

```javascript
import { takeEvery } from 'redux-saga/effects';
import { apiRequest } from '@seedrs/redux-sagas';
import { GET_BOOKS_REQUEST } from 'constants/books';
import actions from 'actions/books';

const saga = function* () {
  yield takeEvery(GET_BOOKS_REQUEST, apiRequest, [
    actions.getBooksSuccess,
    actions.getBooksFailure
  ], undefined);
};

export default saga;
```

For more detailed usage, use the links below:

* [apiRequest](src/sagas/apiRequest)
* [getCookie](src/sagas/getCookie)
* [getSearchParam](src/sagas/getSearchParam)