Add license to npm (close #1177)