adamschwartz / log

Console.log with style.
https://adamschwartz.co/log
MIT License
3.01k stars 140 forks source link

push to NPM for browserify and the like. #8

Closed omeid closed 10 years ago

omeid commented 11 years ago

Basically title says it all.

adamschwartz commented 11 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?

omeid commented 11 years ago

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.

adamschwartz commented 10 years ago

Added to NPM as log-with-style.