npm-izing code

Adding `module.export =`s
Adding `require`s
Adding `package.json`