Closed omeid closed 10 years ago
Do you think http://cdnjs.com
might be a better idea? I've not used browserify, but I have a feeling cdnjs
is more commonly used by front-end developers (and to my knowledge node.js's console.log
cannot be styled in the same way).
Also, wouldn't log need to be rewritten as a module (instead of exporting everything to window
)? I believe part of the success of the project is due to the fact that it "just works". I suppose we could provide a second version for use with NPM though. What are your thoughts?
Actually, browserify is used for front-end development. It's basically an alternative to RequireJS but with a lot of magic.
Of course this script wouldn't work as is for the Node.js server side and you don't need browserify for server side modules anyways.
Also, as there is already a Log
module for server side, you would probably need to push this as a log-browserify
, log-client
or something a long those lines.
Added to NPM as log-with-style
.
Basically title says it all.