Socket
Socket
Sign inDemoInstall

deprecated

Package Overview
Dependencies
0
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    deprecated

Tool for deprecating things


Version published
Weekly downloads
194K
decreased by-3.59%
Maintainers
2
Install size
7.13 kB
Created
Weekly downloads
 

Readme

Source

deprecated NPM version Build Status Coveralls Status Dependency Status

Information

Packagedeprecated
DescriptionTool for deprecating things
Node Version>= 0.9

Usage

var oldfn = function(a,b) {
  return a+b;
};

// returns a new wrapper function that logs the deprecated function once
var somefn = deprecated.method('dont use this anymore', console.log, oldfn);

var someobj = {};

// set up a getter/set for field that logs deprecated message once
deprecated.field('dont use this anymore', console.log, someobj, 'a', 123);

console.log(someobj.a); // 123

FAQs

Last updated on 13 May 2017

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc