Issue #7: make regex2dfa into an npm package