Skip to content

Latest commit

 

History

History
30 lines (18 loc) · 801 Bytes

README.md

File metadata and controls

30 lines (18 loc) · 801 Bytes

Sugar-Deprecated

Build Status

Compatibility layer to smoothly remove dependency on the library Sugar.js

I have nothing against said library, but I found myself in the need to remove it from a project.

This solution deprecates Sugar.js extensions, but they still work should you forget to remove any of them. Optionally, warns will be emitted whenever such calls are unexpectedly performed.

Installation

npm install --save sugar-deprecated

Usage

Add to the very top of the application.

require('sugar-deprecated')(fn); // Pass a logger function to convenience.

License

MIT License