CoolFace
Apppublic

Pinsave/counterstrike

sourceHugging Faceupdated 3mo agoView on Hugging Face
1likes
README.md54 linesDownload Raw Back to util-deprecate
1util-deprecate2==============3### The Node.js `util.deprecate()` function with browser support4 5In Node.js, this module simply re-exports the `util.deprecate()` function.6 7In the web browser (i.e. via browserify), a browser-specific implementation8of the `util.deprecate()` function is used.9 10 11## API12 13A `deprecate()` function is the only thing exposed by this module.14 15``` javascript16// setup:17exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead');18 19 20// users see:21foo();22// foo() is deprecated, use bar() instead23foo();24foo();25```26 27 28## License29 30(The MIT License)31 32Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>33 34Permission is hereby granted, free of charge, to any person35obtaining a copy of this software and associated documentation36files (the "Software"), to deal in the Software without37restriction, including without limitation the rights to use,38copy, modify, merge, publish, distribute, sublicense, and/or sell39copies of the Software, and to permit persons to whom the40Software is furnished to do so, subject to the following41conditions:42 43The above copyright notice and this permission notice shall be44included 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 WARRANTIES48OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND49NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT50HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,51WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING52FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR53OTHER DEALINGS IN THE SOFTWARE.54