# deprecated

> Tool for deprecating things

Latest version **0.0.2** (published 2017-05-13) · 0 weekly downloads

## Install

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

## Health

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

Positive: has types; no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2017-05-13 |
| First published | 2014-01-24 |
| Weekly downloads | 0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >= 0.9 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 36 |
| Author | Fractal |
| Maintainers | contra, fractal |

## Links

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

## Recent versions

- 0.0.2 (latest) — 2017-05-13
- 0.0.1 — 2014-01-24

## README

# deprecated [![NPM version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Dependency Status][david-image]][david-url]


## Information

<table>
<tr> 
<td>Package</td><td>deprecated</td>
</tr>
<tr>
<td>Description</td>
<td>Tool for deprecating things</td>
</tr>
<tr>
<td>Node Version</td>
<td>>= 0.9</td>
</tr>
</table>

## Usage

```javascript
var oldfn = function(a,b) {
  return a+b;
};

// returns a new wrapper function that logs the deprecated function once
var somefn = deprecated.method('dont use this anymore', console.log, oldfn);

var someobj = {};

// set up a getter/set for field that logs deprecated message once
deprecated.field('dont use this anymore', console.log, someobj, 'a', 123);

console.log(someobj.a); // 123
```

[npm-url]: https://npmjs.org/package/deprecated
[npm-image]: https://badge.fury.io/js/deprecated.png

[travis-url]: https://travis-ci.org/wearefractal/deprecated
[travis-image]: https://travis-ci.org/wearefractal/deprecated.png?branch=master

[coveralls-url]: https://coveralls.io/r/wearefractal/deprecated
[coveralls-image]: https://coveralls.io/repos/wearefractal/deprecated/badge.png

[depstat-url]: https://david-dm.org/wearefractal/deprecated
[depstat-image]: https://david-dm.org/wearefractal/deprecated.png

[david-url]: https://david-dm.org/wearefractal/deprecated
[david-image]: https://david-dm.org/wearefractal/deprecated.png?theme=shields.io

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