# component-plus-node

> makes components work in both node and the browser

Latest version **0.0.1** (published 2013-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install component-plus-node
pnpm add component-plus-node
yarn add component-plus-node
bun add component-plus-node
```

## 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.0.1 |
| Published | 2013-11-30 |
| First published | 2013-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | stagas |
| Maintainers | stagas |
| Keywords | component, node |

## Links

- npm: https://www.npmjs.com/package/component-plus-node
- npm.io page: https://npm.io/package/component-plus-node

## Alternatives

- [@expo/fingerprint](https://npm.io/package/@expo/fingerprint.md) — 6.2M weekly downloads
- [@azure/monitor-opentelemetry-exporter](https://npm.io/package/@azure/monitor-opentelemetry-exporter.md) — 850.0K weekly downloads
- [@azure/monitor-opentelemetry](https://npm.io/package/@azure/monitor-opentelemetry.md) — 624.0K weekly downloads
- [@posthog/ai](https://npm.io/package/@posthog/ai.md) — 423.3K weekly downloads
- [fakefilter](https://npm.io/package/fakefilter.md) — 63.9K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-11-30

## README

# component-plus-node

makes components work in both node and the browser

## Installing

`npm install component-plus-node`

`component install stagas/component-plus-node`

## Example

This code runs the same in both component and node,
even though `each` and npm dependencies are suffixed with `-component`:

```js
require('component-plus-node');

var each = require('each');

var result = '';

each(['Hello,', ' world!'], function(el){
  result += el;
});

console.log(result); // => Hello, world!
```

## Notes

This is monkey-patching `Module._resolveFilename` thus requiring
`component-plus-node` needs to be called early before any other requires
that reference `-component` modules.

## License

MIT

---
_Source: https://npm.io/package/component-plus-node · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
