BlueGit

blue-star danique-bot

Files

danique-bot / node_modules / util-deprecate / README.md

README.md

Import template
timfa Tim · pushed by timfa · 4 years ago
c788ad20 History
README.md 1.6 KiB Download Raw

util-deprecate ==============

The Node.js util.deprecate() function with browser support

In Node.js, this module simply re-exports the util.deprecate() function.

In the web browser (i.e. via browserify), a browser-specific implementation of the util.deprecate() function is used.

API

A deprecate() function is the only thing exposed by this module.

// setup:
exports.foo = deprecate(foo, 'foo() is deprecated, use bar() instead');


// users see:
foo();
// foo() is deprecated, use bar() instead
foo();
foo();

License

(The MIT License)

Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Source
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.