open-index/open-npm huggingface dataset:
npm package: @regru/stylelint-formatter-junit
Description: A fork of the junit formatter for stylelint, but with relative path & gitlab compatible
Author: REG.RU
Latest version: 0.3.0

# @regru/[stylelint](https://stylelint.io/)-formatter-junit
> A junit formatter/reporter for [stylelint](https://stylelint.io/) that's display relative path instead of absolute and supports gitlab (classname field)

[![NPM Version](http://img.shields.io/npm/v/@regru/stylelint-formatter-junit.svg?style=flat)](https://npmjs.org/package/@regru/stylelint-formatter-junit)

## install

```bash
yarn add --dev @regru/stylelint-formatter-junit
```

## Usage

In the command line

```bash
# just make sure you pass the path to the module to the format option of stylelint
stylelint --custom-formatter './node_modules/@regru/stylelint-formatter-junit'
```
npm package: @regru/webpack-stats-plugin
Description: Webpack stats plugin
Author: shiftmailbox@gmail.com
Latest version: 1.0.0

Webpack Stats Plugin
====================

This plugin will extract stats from your webpack build, transform and write to file.

## Installation

```
$ npm install --save-dev @regru/webpack-stats-plugin
$ yarn add --dev @regru/webpack-stats-plugin
```

### Usage

```js
const { StatsWriterPlugin } = require("@regru/webpack-stats-plugin");

module.exports = {
  plugins: [
    // Everything else **first**.

    // Write out stats file to build directory.
    new StatsWriterPlugin({
      filename: "stats.json" // Default
    })
  ]
}
```

### Custom Transform Function

The transform function has a signature of:

```js
/**
 * Transform skeleton.
 *
 * @param {Object} stats          Stats object
 * 
 * @returns {String}              String to emit to file
 */
function transform(stats) {}
```

which you can use like:

```js
const { StatsWriterPlugin } = require("@regru/webpack-stats-plugin");

module.exports = {
  plugins: [
    new StatsWriterPlugin({
      transform(data, opts) {
        return JSON.stringify({
          main: data.assetsByChunkName.main[0],
          css: data.assetsByChunkName.main[1]
        }, null, 2);
      }
    })
  ]
}
```

## Plugins

* [`StatsWriterPlugin(opts)`](#statswriterplugin-opts-)

### `StatsWriterPlugin(opts)`
* **opts** (`Object`) options
* **opts.filename** (`String`) output file name (Default: &quot;stat.json&quot;)
* **opts.once** (`Boolean`) skip functionality after first occurrence
* **opts.statsOptions** (`Object`) options for webpack Stats object (See [Stats](https://webpack.js.org/configuration/stats/#stats-options))
* **opts.transform** (`Function`) transform stats obj (Default: `JSON.stringify()`)

Stats writer module.

Stats can be a string or array (we"ll have array from using source maps):

```js
"assetsByChunkName": {
  "main": [
    "cd6371d4131fbfbefaa7.bundle.js",
    "../js-map/cd6371d4131fbfbefaa7.bundle.js.map"
  ]
},
```

See:
- http://webpack.github.io/docs/long-term-caching.html#get-filenames-from-stats
- https://github.com/webpack/docs/wiki/node.js-api#stats

**`filename`**: The `opts.filename` option can be a file name or path relative to
`output.path` in webpack configuration. It should not be absolute.

**`transform`**: By default, the retrieved stats object is `JSON.stringify`'ed
but by supplying an alternate transform you can target _any_ output format.
See [`test/webpack4/webpack.config.js`](test/webpack4/webpack.config.js) for
various examples including Markdown output.

- **Warning**: The output of `transform` should be a `String`, not an object. On
  Node `v4.x` if you return a real object in `transform`, then webpack will
  break with a `TypeError` (See
  [#8](https://github.com/FormidableLabs/webpack-stats-plugin/issues/8)). Just
  adding a simple `JSON.stringify()` around your object is usually what you need
  to solve any problems.
npm package: @regru/webpack-unused
Description: Check your frontend code for files/assets that are no longer used.
Author: Philip Roberts
Latest version: 0.2.0

# @regru/webpack-unused

Check your frontend code for files/assets that are no longer used.

Uses the output of `webpack --json` to see which files are actually used in your bundle,
and lists files which haven't been required.

## Usage:

```bash
# install webpack-unused
npm install -g @regru/webpack-unused

# run webpack using your normal webpack config etc
# with the --json switch to output the stats.json, and pipe to webpack-unused
# unused files in the cwd will be listed
webpack --json | webpack-unused

# if your source code is in a directory, like src/ pass that as a flag:
webpack --json | webpack-unused -s src

# if your you want to ignore some files that are not used by webpack - like specs you can pass ignore flag (glob):
webpack --json | webpack-unused -s src -i **/*.spec.js

# or even multiple glob patterns:
webpack --json | webpack-unused -s src -i '**/*.spec.js, lib/*.js'
```

## Notes/Caveats:

* this doesn't check for any unused npm modules etc that you have installed (`node_modules` is ignored)
* webpack-unused will detect non-js files that are required via loaders etc, however any requires that happen outside of webpack's knowledge may be incorrectly reported as unused, for example:
    * css-preprocessor imports, for example `less`'s `@import` happens outside the webpack flow, so files which are only required via `@import` will report as unused, even if they are
* it looks like currently files that would appear in your output from using webpack's `NormalModuleReplacementPlugin` don't appear in webpack's `--json` output, and so will be incorrectly reported as unused, while the original may be incorrectly reported as used. [issue #1](https://github.com/latentflip/webpack-unused/issues/1)
* ideally, you'll have all your frontend code in a `src/` directory or similar so that you can use the `-s` flag, if not, any non-frontend code in cwd will be reported as unused

## Related

- [jspm-unused](https://github.com/oligot/jspm-unused) - Find unused files in a Jspm project

## Contributing, etc

This is just a first stab, and I'm publishing it because I constantly look for/rewrite code to achieve this. PRs/Suggestions for improvements very welcome.