Just simply load the pinyinize.js or pinyinize.min.js file:
<head>
...
<script src="src/pinyinize.js"></script>
...
</head>
Pinyinize.toMarks('tai2 wan1'); // returns 'tái wān'
Install karma-cli: npm install -g karma-cli
Run the tests:
karma start