# react-server-module-tagger

> calculates module level config

Latest version **0.6.0** (published 2017-01-28) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install react-server-module-tagger
pnpm add react-server-module-tagger
yarn add react-server-module-tagger
bun add react-server-module-tagger
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.6.0 |
| Published | 2017-01-28 |
| First published | 2016-06-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3861 |
| Author | Doug Wade |
| Maintainers | douglas.wade, gigabo, sresant |
| Keywords | react-server |

## Links

- npm: https://www.npmjs.com/package/react-server-module-tagger
- Repository: https://github.com/redfin/react-server
- Homepage: https://github.com/redfin/react-server#readme
- Issues: https://github.com/redfin/react-server/issues
- npm.io page: https://npm.io/package/react-server-module-tagger

## Recent versions

- 0.6.0 (latest) — 2017-01-28
- 1.0.0-alpha.2 (prerelease) — 2019-05-21
- 1.0.0-alpha.1 — 2019-05-10
- 1.0.0-alpha.0 — 2019-05-02
- 0.4.10 — 2016-11-08
- 0.4.7 — 2016-08-27
- 0.4.4 — 2016-08-17
- 0.3.3 — 2016-06-30
- 0.0.1 — 2016-06-09

## README

# react-server-module-tagger

A function for tagging [react-server](https://www.npmjs.com/package/react-server)
logger instances with information about the module they're being used in.

To transpile your source for use with
[React Server](https://www.npmjs.com/package/react-server), install gulp and the plugin

```shell
npm i -D gulp react-server-module-tagger
```

Then require and call the function.

```javascript
const tagger = require('react-server-module-tagger');
const filePath = 'path/to/my/output.js';
const opts = {label:"foo"};
const moduleTag = tagger({ filePath, trim: 'path/to', opts });
```

returns a logger instance that will have consistent coloring on the server and
the client, and that has a human-friendly, readable name that easily maps to
the file tree (in this example `components.my-feature.foo`).

---
_Source: https://npm.io/package/react-server-module-tagger · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
