Updated to use the new npm data API.

Closes #18.