support require('range').
add npm tests