open-index/open-npm huggingface dataset:
npm package: @sumotto/additional-imports-webpack-pre-loader
Description: Adds additional imports to the end of the processed file according to the passed global paths.
Author: Sigalin Kirill
Latest version: 1.1.0

# Additional Imports Webpack Pre Loader

Adds additional imports to the end of the processed file according to the passed global paths.

## Installation

You can install the package as follows:

```sh
npm install @sumotto/additional-imports-webpack-pre-loader --save-dev

# or

yarn add @sumotto/additional-imports-webpack-pre-loader --dev
```

## Usage

Add a rule to your Webpack configuration:

```js
module.exports = {
	module: {
		rules: [
			{
				test: /src[\\/]index\.js$/, // Files into which the imports will be added.
				exclude: /node_modules/,
				enforce: 'pre', // Be sure to specify 'pre' to make the other loaders work later.
				use: [
					{
						loader: '@sumotto/additional-imports-webpack-pre-loader',
						options: {
							// An array of absolute globe paths, the found files will be imported.
							globs: [
								resolve( __dirname, 'src/styles/pages/**/*.pcss' ),
								resolve( __dirname, 'src/scripts/pages/**/*.js' ),
							],
							// Webpack magical comments will be added to each additional import.
							magicComments: 'webpackMode: "eager", webpackChunkName: "pages"',
							// The function which checks if the path found needs to be imported.
							pathCheck( path ) {
								return path.test( /test/ );
							}
						}
					}
				],
			},
		]
	},
}
```

## License

MIT License
npm package: @sumotto/beautify-html-webpack-plugin
Description: Webpack plugin for beautify HTML files (created using HTML Webpack Plugin) using JS Beautifier
Author: Sigalin Kirill
Latest version: 1.0.0

# HTML Beautifier plugin for Webpack

[Webpack](https://github.com/webpack/webpack#readme) plugin for beautify HTML files (created
using [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin#readme))
using [JS Beautifier](https://github.com/beautify-web/js-beautify#readme).

## Installation

The plugin requires your application to be installed Webpack 4 or 5, and HTML Webpack Plugin 4 or 5.

You can install the package as follows:

```sh
npm install @sumotto/beautify-html-webpack-plugin --save-dev

# or

yarn add @sumotto/beautify-html-webpack-plugin --dev
```

## Usage

Require the plugin in your Webpack config:

```js
const BeautifyHtmlWebpackPlugin = require( '@sumotto/beautify-html-webpack-plugin' );

// or

import BeautifyHtmlWebpackPlugin from '@sumotto/beautify-html-webpack-plugin';
```

Add the plugin to your webpack configuration's `plugins` array after Html Webpack Plugin:

```js
plugins: [
	new HtmlWebpackPlugin(),
	new BeautifyHtmlWebpackPlugin(),
]
```

Configure the parameters you need by passing
[the settings object for JS Beautifier](https://github.com/beautify-web/js-beautify#css--html). By default, the plugin
uses [default settings](https://github.com/beautify-web/js-beautify/blob/main/js/config/defaults.json) from JS
Beautifier:

```js
plugins: [
	new HtmlWebpackPlugin(),
	new BeautifyHtmlWebpackPlugin( {
		"indent_size": 4,
		"indent_char": " ",
		"indent_level": 0,
		"indent_with_tabs": false,
		"preserve_newlines": true,
		"max_preserve_newlines": 10,
		"jslint_happy": false,
		"space_after_named_function": false,
		"space_after_anon_function": false,
		"brace_style": "collapse",
		"keep_array_indentation": false,
		"keep_function_indentation": false,
		"space_before_conditional": true,
		"break_chained_methods": false,
		"eval_code": false,
		"unescape_strings": false,
		"wrap_line_length": 0,
		"indent_empty_lines": false,
		"templating": [ "auto" ]
	} ),
]
```

## Notes

The plugin inside is trying to require HTML WebPack Plugin from your dependencies `require( 'html-webpack-plugin' )`, if
for some reason you connect it from another location, you can transfer it to the second parameter:

```js
plugins: [
	new HtmlWebpackPlugin(),
	new BeautifyHtmlWebpackPlugin( {}, HtmlWebpackPlugin ),
]
```

## License

MIT License
npm package: @sumotto/has-wordpress-plugin-directory
Description: Checks that the plugin directory exists in WordPress plugins directory
Author: Sigalin Kirill
Latest version: 1.0.0

# Has WordPress Plugin Directory

It runs through the files tree from the call file, and finds the first directory in which there is a `plugins`
directory, usually the `wp-content` directory, but not always.

Then simply checks that in the directory `plugins` there is a directory named that you indicated the only parameter of
this function.

## Installation

You can install the package as follows:

```sh
npm install @sumotto/has-wordpress-plugin-directory --save-dev

# or

yarn add @sumotto/has-wordpress-plugin-directory --dev
```

## Usage

Include:

```js
const hasWordPressPluginDirectory = require( '@sumotto/has-wordpress-plugin-directory' );

// or

import hasWordPressPluginDirectory from '@sumotto/has-wordpress-plugin-directory';
```

And check plugin folder name:

```js
const hasWoocommerceDirectory = hasWordPressPluginDirectory( 'woocommerce' );
if ( hasWoocommerceDirectory ) {
	// Your code here.
}
```

## License

MIT License
npm package: @sumotto/html-href-to-relative-webpack-plugin
Description: Webpack plugin for replace <a href='/'> to relative path in HTML files.
Author: Sigalin Kirill
Latest version: 1.0.0

# HTML Href to Relative Webpack Plugin

[Webpack](https://github.com/webpack/webpack#readme) plugin for replace `<a href="/">` to relative path in HTML files.

## Installation

You can install the package as follows:

```sh
npm install @sumotto/html-href-to-relative-webpack-plugin --save-dev

# or

yarn add @sumotto/html-href-to-relative-webpack-plugin --dev
```

## Usage

Require the plugin in your Webpack config:

```js
const HtmlHrefToRelativePlugin = require( '@sumotto/html-href-to-relative-webpack-plugin' );

// or

import HtmlHrefToRelativePlugin from '@sumotto/html-href-to-relative-webpack-plugin';
```

Add the plugin to your webpack configuration's `plugins` array.
If you use [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin#readme)) then this plugin should go after him:

```js
plugins: [
	new HtmlWebpackPlugin(), // optional
	new HtmlHrefToRelativePlugin(),
]
```

## License

MIT License
npm package: @sumotto/multiple-html-pages-webpack-plugin
Description: Multiple HTML pages using HTML Webpack Plugin
Author: Sigalin Kirill
Latest version: 1.0.0

# HTML Href to Relative Webpack Plugin

This is [Webpack](https://github.com/webpack/webpack#readme) plugin, for generate multiple HTML pages
using [HTML Webpack Plugin](https://github.com/jantimon/html-webpack-plugin#readme)

## Installation

You can install the package as follows:

```sh
npm install @sumotto/multiple-html-pages-webpack-plugin --save-dev

# or

yarn add @sumotto/multiple-html-pages-webpack-plugin --dev
```

## Usage

Require the plugin and HTML Webpack Plugin in your Webpack config:

```js
const MultipleHtmlPagesPlugin = require( '@sumotto/multiple-html-pages-webpack-plugin' );
const HtmlWebpackPlugin = require( 'html-webpack-plugin' );

// or

import MultipleHtmlPagesPlugin from '@sumotto/multiple-html-pages-webpack-plugin';
import HtmlWebpackPlugin from 'html-webpack-plugin';
```

Add the plugin to your webpack configuration's `plugins` array.

```js
module.exports = {
	plugins: [
		new MultipleHtmlPagesPlugin(
			{
				// Information about the paths to the template files that will be generated in the pages.
				pathsInfo: [
					{
						// Absolute path to the folder from which relative file names will be computed.
						root: path.resolve( __dirname, 'src/templates/pages' ),
						// A glob template that will search for template files relative to root.
						glob: '**/*.hbs'
					},
					{
						root: path.resolve( __dirname, 'src/templates/pages' ),
						glob: '**/*.html'
					}
				],
				// Set any options for HTML Webpack Plugin, they will be applied to all pages.
				htmlWebpackPluginOptions: { minify: false },
				// Pass the HTML Webpack Plugin instance.
				HtmlWebpackPlugin,
				// The function which checks if the path found needs to be generated. Optional.
				pathCheck( path ) {
					return path.test( /test/ );
				}
			},
		)
	],
}
```

## License

MIT License
npm package: @sumowallet/assets-controllers
Description: Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
Latest version: 5.0.0

# `@metamask/assets-controllers`

Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs).

## Installation

`yarn add @metamask/assets-controllers`

or

`npm install @metamask/assets-controllers`

## Controllers

This package features the following controllers:

- [**AccountTrackerController**](src/AccountTrackerController.ts) keeps a updated list of the accounts in the currently selected keychain which is updated automatically on a schedule or on demand.
- [**AssetsContractController**](src/AssetsContractController.ts) provides a set of convenience methods that use contracts to retrieve information about tokens, read token balances, and transfer tokens.
- [**CollectibleDetectionController**](src/CollectibleDetectionController.ts) keeps a periodically updated list of ERC-721 tokens assigned to the currently selected address.
- [**CollectiblesController**](src/CollectiblesController.ts) tracks ERC-721 and ERC-1155 tokens assigned to the currently selected address, using OpenSea to retrieve token information.
- [**CurrencyRateController**](src/CurrencyRateController.ts) keeps a periodically updated value of the exchange rate from the currently selected "native" currency to another (handling testnet tokens specially).
- [**TokenBalancesController**](src/TokenBalancesController.ts) keeps a periodically updated set of balances for the current set of ERC-20 tokens.
- [**TokenDetectionController**](src/TokenDetectionController.ts) keeps a periodically updated list of ERC-20 tokens assigned to the currently selected address.
- [**TokenListController**](src/TokenListController.ts) uses the MetaSwap API to keep a periodically updated list of known ERC-20 tokens along with their metadata.
- [**TokenRatesController**](src/TokenRatesController.ts) keeps a periodically updated list of exchange rates for known ERC-20 tokens relative to the currently selected native currency.
- [**TokensController**](src/TokensController.ts) stores the ERC-20 and ERC-721 tokens, along with their metadata, that are listed in the wallet under the currently selected address on the currently selected chain.

## Contributing

This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).
npm package: @sumowallet1/assets-controllers
Description: Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs)
Latest version: 5.0.0

# `@metamask/assets-controllers`

Controllers which manage interactions involving ERC-20, ERC-721, and ERC-1155 tokens (including NFTs).

## Installation

`yarn add @metamask/assets-controllers`

or

`npm install @metamask/assets-controllers`

## Controllers

This package features the following controllers:

- [**AccountTrackerController**](src/AccountTrackerController.ts) keeps a updated list of the accounts in the currently selected keychain which is updated automatically on a schedule or on demand.
- [**AssetsContractController**](src/AssetsContractController.ts) provides a set of convenience methods that use contracts to retrieve information about tokens, read token balances, and transfer tokens.
- [**CollectibleDetectionController**](src/CollectibleDetectionController.ts) keeps a periodically updated list of ERC-721 tokens assigned to the currently selected address.
- [**CollectiblesController**](src/CollectiblesController.ts) tracks ERC-721 and ERC-1155 tokens assigned to the currently selected address, using OpenSea to retrieve token information.
- [**CurrencyRateController**](src/CurrencyRateController.ts) keeps a periodically updated value of the exchange rate from the currently selected "native" currency to another (handling testnet tokens specially).
- [**TokenBalancesController**](src/TokenBalancesController.ts) keeps a periodically updated set of balances for the current set of ERC-20 tokens.
- [**TokenDetectionController**](src/TokenDetectionController.ts) keeps a periodically updated list of ERC-20 tokens assigned to the currently selected address.
- [**TokenListController**](src/TokenListController.ts) uses the MetaSwap API to keep a periodically updated list of known ERC-20 tokens along with their metadata.
- [**TokenRatesController**](src/TokenRatesController.ts) keeps a periodically updated list of exchange rates for known ERC-20 tokens relative to the currently selected native currency.
- [**TokensController**](src/TokensController.ts) stores the ERC-20 and ERC-721 tokens, along with their metadata, that are listed in the wallet under the currently selected address on the currently selected chain.

## Contributing

This package is part of a monorepo. Instructions for contributing can be found in the [monorepo README](https://github.com/MetaMask/core#readme).