Adding NPM state handler
Merge pull request #12 from gosquadron/npm-state

Adding NPM state handler