update npm package.
add template method.