{"action":"opened","issue":{"url":"https://api.github.com/repos/ganemone/NodeRequirer/issues/36","labels_url":"https://api.github.com/repos/ganemone/NodeRequirer/issues/36/labels{/name}","comments_url":"https://api.github.com/repos/ganemone/NodeRequirer/issues/36/comments","events_url":"https://api.github.com/repos/ganemone/NodeRequirer/issues/36/events","html_url":"https://github.com/ganemone/NodeRequirer/issues/36","id":58948101,"number":36,"title":"Allow aliasing package.json","user":{"login":"dantman","id":53399,"avatar_url":"https://avatars.githubusercontent.com/u/53399?v=3","gravatar_id":"","url":"https://api.github.com/users/dantman","html_url":"https://github.com/dantman","followers_url":"https://api.github.com/users/dantman/followers","following_url":"https://api.github.com/users/dantman/following{/other_user}","gists_url":"https://api.github.com/users/dantman/gists{/gist_id}","starred_url":"https://api.github.com/users/dantman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dantman/subscriptions","organizations_url":"https://api.github.com/users/dantman/orgs","repos_url":"https://api.github.com/users/dantman/repos","events_url":"https://api.github.com/users/dantman/events{/privacy}","received_events_url":"https://api.github.com/users/dantman/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T18:30:05Z","updated_at":"2015-02-25T18:30:05Z","closed_at":null,"body":"This is a somewhat common pattern:\r\n```js\r\nvar pkg = require('../package.json');\r\n```\r\n\r\nPerhaps it would be worth letting package.json be aliased with a default of `pkg` (since the default `var package = require('../package.json');` is almost always wrong).\r\n\r\nBecause package.json is a local the aliases cannot currently match it in a global way. Perhaps we should special case package.json and allow `{ \"alias\": { \"package.json\": \"pkg\" } }` to set it."}}