# transparent

> Simple, removable proxies for JavaScript methods.

Latest version **0.0.1** (published 2013-02-28) · 0 weekly downloads

## Install

```sh
npm install transparent
pnpm add transparent
yarn add transparent
bun add transparent
```

## 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-02-28 |
| First published | 2013-02-28 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Tim Shadel |
| Maintainers | timshadel |
| Keywords | proxy, hijack, method, middleware |

## Links

- npm: https://www.npmjs.com/package/transparent
- Repository: https://github.com/transparent/transparent
- Homepage: http://github.com/transparent/transparent/
- Issues: http://github.com/transparent/transparent/issues
- npm.io page: https://npm.io/package/transparent

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2013-02-28

## README

# Transparent
[http://github.com/transparentjs/transparent](http://github.com/transparentjs/transparent)

Transparent is library for creating removable proxies for JavaScript functions. Much
of it was extracted from the honorable [Sinon.js](http://sinonjs.org/), which has
used these constructs to make testing spies and stubs. The proxy acts exactly like the 
original method in all cases. The original method can be restored by calling
`object.method.restore()`. The returned proxy is the function object which replaced the 
original method. `proxy === object.method`.

Transparent can be used to build performance gathering proxies, logging proxies, or
even generalized middleware. In this way, libraries like Sinon and
[Nodetime](http://github.com/nodetime/nodetime) have the opportunity to build on
a common proxying structure rather than creating their own mutually incompatible
approaches.

Transparent subscribes to the philosophy of Component.js, and seeks to do nothing
else. If you cannot use it to replace your home grown proxying library.

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