isaacs/npm — pull request #2160 by pvorb (2012-02-15 12:32:59+00:00)
Title: Add newline after package.json generated by npm version.

When you invoke `npm version [newversion]` npm updates the `package.json` file of a package.

The problem is, that it does not add a newline character at the end of the file. Vim always adds a newline character at the end of a file. This way, if you look at the diff of `package.json` (`git diff package.json`), you see this:

```diff
…
-}
\ No newline at end of file
+}
```

My patch fixes this by adding a newline after the package.json created by npm.