1util-deprecate 2============== 3### The Node.js `util.deprecate()` function with browser support 4 5In Node.js, this module simply re-exports the `util.deprecate()` function. 6 7In the web browser (i.e. via browserify), a browser-specific implementation 8of the `util.deprecate()` function is used. 9 10 11## API 12 13A `deprecate()` function is the only thing exposed by this module. 14 15``` javascript 16// setup: 17exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead'); 18 19 20// users see: 21foo(); 22// foo() is deprecated, use bar() instead 23foo(); 24foo(); 25``` 26 27 28## License 29 30(The MIT License) 31 32Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net> 33 34Permission is hereby granted, free of charge, to any person 35obtaining a copy of this software and associated documentation 36files (the "Software"), to deal in the Software without 37restriction, including without limitation the rights to use, 38copy, modify, merge, publish, distribute, sublicense, and/or sell 39copies of the Software, and to permit persons to whom the 40Software is furnished to do so, subject to the following 41conditions: 42 43The above copyright notice and this permission notice shall be 44included in all copies or substantial portions of the Software. 45 46THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 47EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 48OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 49NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 50HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 51WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 52FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 53OTHER DEALINGS IN THE SOFTWARE. 54