Installation
Node.js
npm install depreca --save
Example
Just one method!
Deprecate function
const deprecate = ; { ; //=> [DeprecationWarning] foo() is deprecated use bar() instead}
Deprecate object property
const config = foo: 'hello' bar: 'world'; ; //=> [DeprecationWarning] foo is deprecated use bar instead // set a custom deprecation titledeprecatetitle = 'MyCustomDeprecation';; //=> [MyCustomDeprecation] bar is deprecated use foo instead
Call only once of deprecate
deprecate;
Changelog
You can view the changelog here
License
depreca is open-sourced software licensed under the MIT license