browserify / commonjs-assert

Node.js's require('assert') for all engines
MIT License
293 stars 57 forks source link

It would be awesome to have closeTo (equals with delta) #31

Closed ianomad closed 5 years ago

calvinmetcalf commented 7 years ago

this is really just a strait up port of the node assert library so if you get them to put it in we'll totally put in in here

AJamesPhillips commented 6 years ago

I filed one initial proposal here for the API: https://github.com/nodejs/node/issues/14686 please weigh in with your opinions of support / suggestions.

AJamesPhillips commented 6 years ago

@calvinmetcalf they're against extending the core assert but are all keen for this functionality and for it to extend user land code. Would you be more open to accepting this in commonjs-assert?

lukechilds commented 5 years ago

@AJamesPhillips this module is a direct clone of Node.js assert to work in the browser. We won't support any features that aren't supported in Node.js assert.

If you want this feature it should be added to a different userland package.