{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/2097","labels_url":"https://api.github.com/repos/npm/npm/issues/2097/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/2097/comments","events_url":"https://api.github.com/repos/npm/npm/issues/2097/events","html_url":"https://github.com/npm/npm/issues/2097","id":2989318,"number":2097,"title":"npm publish from Windows handles CRLF incorrectly","user":{"login":"DukeyToo","id":1268000,"avatar_url":"https://avatars.githubusercontent.com/u/1268000?v=3","gravatar_id":"","url":"https://api.github.com/users/DukeyToo","html_url":"https://github.com/DukeyToo","followers_url":"https://api.github.com/users/DukeyToo/followers","following_url":"https://api.github.com/users/DukeyToo/following{/other_user}","gists_url":"https://api.github.com/users/DukeyToo/gists{/gist_id}","starred_url":"https://api.github.com/users/DukeyToo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DukeyToo/subscriptions","organizations_url":"https://api.github.com/users/DukeyToo/orgs","repos_url":"https://api.github.com/users/DukeyToo/repos","events_url":"https://api.github.com/users/DukeyToo/events{/privacy}","received_events_url":"https://api.github.com/users/DukeyToo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/feature-request","name":"feature-request","color":"ACE1AF"},{"url":"https://api.github.com/repos/npm/npm/labels/patch-welcome","name":"patch-welcome","color":"e102d8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":40,"created_at":"2012-01-27T01:46:09Z","updated_at":"2015-09-30T13:10:14Z","closed_at":null,"body":"When published from a Windows machine, the package files are uploaded with the windows-style CRLF endings.  This is fine for most files, but if there are any shell scripts or a specified bin file, then those files will be corrupt and fail on a Linux machine.\r\n\r\nI encountered this behavior publishing some of my packages from Windows from a git repository, using e.g. \r\n\r\n    $ npm publish git://github.com/myuser/mypackage.git\r\n\r\nI understand why this occurs, but since this makes `npm publish` 50% unusable on Windows, I think it is fair to call it a bug in npm."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/144390496","html_url":"https://github.com/npm/npm/issues/2097#issuecomment-144390496","issue_url":"https://api.github.com/repos/npm/npm/issues/2097","id":144390496,"user":{"login":"ForbesLindesay","id":1260646,"avatar_url":"https://avatars.githubusercontent.com/u/1260646?v=3","gravatar_id":"","url":"https://api.github.com/users/ForbesLindesay","html_url":"https://github.com/ForbesLindesay","followers_url":"https://api.github.com/users/ForbesLindesay/followers","following_url":"https://api.github.com/users/ForbesLindesay/following{/other_user}","gists_url":"https://api.github.com/users/ForbesLindesay/gists{/gist_id}","starred_url":"https://api.github.com/users/ForbesLindesay/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ForbesLindesay/subscriptions","organizations_url":"https://api.github.com/users/ForbesLindesay/orgs","repos_url":"https://api.github.com/users/ForbesLindesay/repos","events_url":"https://api.github.com/users/ForbesLindesay/events{/privacy}","received_events_url":"https://api.github.com/users/ForbesLindesay/received_events","type":"User","site_admin":false},"created_at":"2015-09-30T13:10:14Z","updated_at":"2015-09-30T13:10:14Z","body":"I didn't look at gitignore/gitattributes files.  I do support specifying just a specific file or directory to convert though which is sufficient for handling the \"bin\" case which is the only place this is actually a problem."}}