# poor-mans-symbol

> Poor man's Symbol implementation, not compliant. Uses window.Symbol if present

Latest version **1.0.1** (published 2016-05-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install poor-mans-symbol
pnpm add poor-mans-symbol
yarn add poor-mans-symbol
bun add poor-mans-symbol
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2016-05-06 |
| First published | 2016-05-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Federico Brigante |
| Maintainers | bfred-it |
| Keywords | symbol, nano, tiny, small, browser, node |

## Links

- npm: https://www.npmjs.com/package/poor-mans-symbol
- Repository: https://github.com/bfred-it/poor-mans-symbol
- Homepage: https://github.com/bfred-it/poor-mans-symbol#readme
- Issues: https://github.com/bfred-it/poor-mans-symbol/issues
- npm.io page: https://npm.io/package/poor-mans-symbol

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2016-05-06
- 1.0.0 — 2016-05-06

## README

# poor-mans-symbol

> Poor man's Symbol implementation, not compliant. Uses `window.Symbol` if present

[![gzipped size](https://badges.herokuapp.com/size/github/bfred-it/poor-mans-symbol/master/dist/poor-mans-symbol.browser.js?gzip=true&label=gzipped%20size)](#readme) [![Travis build status](https://api.travis-ci.org/bfred-it/poor-mans-symbol.svg?branch=master)](https://travis-ci.org/bfred-it/poor-mans-symbol) [![gzipped size](https://img.shields.io/npm/v/poor-mans-symbol.svg)](https://www.npmjs.com/package/poor-mans-symbol) 

This is not a polyfill, it's only good to be used to generate pseudo-[private property keys.](http://www.2ality.com/2014/12/es6-symbols.html#symbols_as_property_keys)

## Usage with npm and ES2015

```sh
npm install --save poor-mans-symbol
```
```js
import PoorSymbol from './poor-mans-symbol';
const ಠ = PoorSymbol('my-nice-module');
el[ಠ] = 'Some private stuff';
```

## Usage without build tools

Copy the content of the file `dist/poor-mans-symbol.browser.js` into your code, don't load that file separately, it's too small. Then:

```js
var ಠ = PoorSymbol('my-nice-module');
el[ಠ] = 'Some private stuff';
```

## License

MIT © [Federico Brigante](http://twitter.com/bfred_it)

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