22 lines
436 B
Markdown
22 lines
436 B
Markdown
|
|
# Grim [](https://travis-ci.org/atom/grim)
|
||
|
|
|
||
|
|
Log deprecate calls
|
||
|
|
|
||
|
|
## Installing
|
||
|
|
|
||
|
|
```sh
|
||
|
|
npm install grim
|
||
|
|
```
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
```javascript
|
||
|
|
Grim = require('grim')
|
||
|
|
|
||
|
|
function someOldMethod() {
|
||
|
|
Grim.deprecate("Use theNewMethod instead.")
|
||
|
|
}
|
||
|
|
```
|
||
|
|
|
||
|
|
To view all calls to deprecated methods use `Grim.logDeprecations()` or get direct access to the deprecated calls by using `Grim.getDeprecations()`
|