andrewplummer/Sugar — Issue #34: sugar 'compatibility' mode
Author: secoif
Created: 2011-10-17 19:51:25+00:00
State: open

I'm having some issue with sugar and mongoose, something to do with arrays losing 'push', but that's OT; since it seems like the mongoosejs guys aren't ever going to be very receptive to sugarjs compatibility, I'd like to suggest perhaps enabling a 'compatibility' mode for sugar so I at least have an __option__ to use sugar methods if sugar doesn't play well with a certain library

eg

```javascript
var Sugar = require('sugar')({compatibility: true}) // I know this is wrong, but something like this would be good
```
…so that I can still have access to sugar's methods, without extending ANY native prototypes.

```javascript
Sugar.object.isArray()

Sugar.date.milliseconds()
```

etc.