Skip to content

Instantly share code, notes, and snippets.

@jessecogollo
Last active October 23, 2017 06:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jessecogollo/a83423bba849c5f2593799aa381c164b to your computer and use it in GitHub Desktop.
Save jessecogollo/a83423bba849c5f2593799aa381c164b to your computer and use it in GitHub Desktop.
deprecate
const {
deprecate
} = require('util');
const myCoolFn = deprecate((name) => {
return `${name} is very cool !!!`;
}, 'myCoolFn is deprecated !!! =(');
module.exports = {
myCoolFn
};
'use strict';
const {
myCoolFn
} = require('./modules/util');
myCoolFn('jesse');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment