1'use strict'; 2const util = require('util'); 3const deprecated = util.deprecate(() => { 4 console.error('This is deprecated'); 5}, 'this function is deprecated'); 6 7deprecated(); 8