example usage in nodejs