Node.js Development Enverionment by Milnex

5271e1410e37d5af76347394fe875f9e?size=52
  1. Install nvm - node.js version manager curl https://raw.github.com/creationix/nvm/master/install.sh | sh
  2. Add the following line into ~/.zshrc or ~/.bashrc or whatever dotfiles your shell uses

    [[ -s $HOME/.nvm/nvm.sh ]] && . $HOME/.nvm/nvm.sh  # This loads NVM
    
  3. Install latest Node.js

    nvm install latest
    

#nodejs #nvm #npm

jquery code-style in node.js by vol4ok

7d9775039cdd23e8083e964eb21ae952?size=52
$ = {}
$ extends require 'fs'
$ extends require 'path'
$ extends require 'events'
$ extends require 'util'
#...

Advantages: 1. Shorter! Ex.: $.basename(...) v.s. path.basename() (and no need expand it to scope like this: {basename,dirname, extname, exists} = require 'path') 2. Less vars! Ex.: var $ v.s. var fs,path,util,events

#nodejs #codestyle