{"action":"created","issue":{"url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/191","labels_url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/191/labels{/name}","comments_url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/191/comments","events_url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/191/events","html_url":"https://github.com/mapbox/node-pre-gyp/issues/191","id":119835980,"number":191,"title":"Separate lib/pre-binding.js into its own npm module?","user":{"login":"bminer","id":73755,"avatar_url":"https://avatars.githubusercontent.com/u/73755?v=3","gravatar_id":"","url":"https://api.github.com/users/bminer","html_url":"https://github.com/bminer","followers_url":"https://api.github.com/users/bminer/followers","following_url":"https://api.github.com/users/bminer/following{/other_user}","gists_url":"https://api.github.com/users/bminer/gists{/gist_id}","starred_url":"https://api.github.com/users/bminer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminer/subscriptions","organizations_url":"https://api.github.com/users/bminer/orgs","repos_url":"https://api.github.com/users/bminer/repos","events_url":"https://api.github.com/users/bminer/events{/privacy}","received_events_url":"https://api.github.com/users/bminer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-01T23:54:23Z","updated_at":"2015-12-29T16:20:36Z","closed_at":null,"body":"This is just a thought, so please bear with me here...\r\n\r\nnode-pre-gyp's dependencies have rather large file sizes (i.e. request weighs 2.6MB), and node-pre-gyp weights over 4MB!  For this reason, I'd like to bundle my pre-compiled module into a nice, small tarball that doesn't need node-pre-gyp as a dependency; however, I like that node-pre-gyp replaces the npm bindings module with the following code:\r\n\r\n```javascript\r\nvar binary = require('node-pre-gyp');\r\nvar path = require('path');\r\nvar binding_path = binary.find(path.resolve(path.join(__dirname,'./package.json')));\r\nvar binding = require(binding_path);\r\n```\r\n\r\nIs there any way that the functionality of `lib/pre-binding.js` could be separated into another npm module that is required by node-pre-gyp?  That way, I could easily delete node-pre-gyp as a dependency after building/installation and still have the binding path determined dynamically.\r\n\r\nDoes that make sense?  Thoughts on this?"},"comment":{"url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/comments/167824309","html_url":"https://github.com/mapbox/node-pre-gyp/issues/191#issuecomment-167824309","issue_url":"https://api.github.com/repos/mapbox/node-pre-gyp/issues/191","id":167824309,"user":{"login":"bminer","id":73755,"avatar_url":"https://avatars.githubusercontent.com/u/73755?v=3","gravatar_id":"","url":"https://api.github.com/users/bminer","html_url":"https://github.com/bminer","followers_url":"https://api.github.com/users/bminer/followers","following_url":"https://api.github.com/users/bminer/following{/other_user}","gists_url":"https://api.github.com/users/bminer/gists{/gist_id}","starred_url":"https://api.github.com/users/bminer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bminer/subscriptions","organizations_url":"https://api.github.com/users/bminer/orgs","repos_url":"https://api.github.com/users/bminer/repos","events_url":"https://api.github.com/users/bminer/events{/privacy}","received_events_url":"https://api.github.com/users/bminer/received_events","type":"User","site_admin":false},"created_at":"2015-12-29T16:20:36Z","updated_at":"2015-12-29T16:20:36Z","body":"Any thoughts on this issue?"}}