# private-accessor

> Private variables for javascript

Latest version **1.1.1** (published 2015-08-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install private-accessor
pnpm add private-accessor
yarn add private-accessor
bun add private-accessor
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.1 |
| Published | 2015-08-08 |
| First published | 2015-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Anthony Foster |
| Maintainers | aantthony |

## Links

- npm: https://www.npmjs.com/package/private-accessor
- Repository: https://github.com/aantthony/private
- Issues: https://github.com/aantthony/private/issues
- npm.io page: https://npm.io/package/private-accessor

## Recent versions

- 1.1.1 (latest) — 2015-08-08

## README

# private
Private variables for javascript

`npm install --save private-accessor`

# Example Usage

```javascript
var $private = require('private-accessor').createAccessor();

var foo = {bar: '3'};
$private(foo).secret = 3;

console.log(foo);
// { bar: '3' }

console.log($private(foo));
// { secret: 3 }
```

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