Using the require statement in the example gives an error in typescript. What would be the correct way to use pkginfo in typescript ?