[fix] if writeNpm exists proxy correctly with public route
[minor] stricter equals because it is more performant