add example to doc, npm package