{"name":"new-github-release-url","version":"0.1.0","description":"Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields","license":"MIT","repository":{"type":"git","url":"git+https://github.com/sindresorhus/new-github-release-url.git"},"author":{"name":"Sindre Sorhus","email":"sindresorhus@gmail.com","url":"sindresorhus.com"},"engines":{"node":">=10"},"scripts":{"test":"xo && ava","start":"node example.js"},"keywords":["github","release","releases","new","generate","url","gh","query","search","parameters","params"],"devDependencies":{"ava":"^0.25.0","opn":"^5.4.0","xo":"^0.23.0"},"gitHead":"986ae4becf3c3e3c8fe241417d018c664379b61c","bugs":{"url":"https://github.com/sindresorhus/new-github-release-url/issues"},"homepage":"https://github.com/sindresorhus/new-github-release-url#readme","_id":"new-github-release-url@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-2rtsTFdC6C+KLy0kipybk1q+F6j/zzDb3oTWUfPjx4a4V7qs6xJSupeXfPcE9cpW2A+7sFvhS7+9CVRNxIb7pw==","shasum":"942bba0ce45ac69ff6879a0b4261f1979dfc6e95","tarball":"http://registry-npm.ywwl.com/new-github-release-url/download/new-github-release-url-0.1.0.tgz","fileCount":4,"unpackedSize":4584,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcBAnpCRA9TVsSAnZWagAAowcP/0gOM8Ym9PG9BkTz64zK\n+hWIRqqNNoppiKXBbQxGzm4LpN9dyy6KLE9wYj4bUO33+cxSLdnpRGl2lw/s\n9d3kggU8zHxOvtIECI4SWhPPwgGtPpCLZMcyWn0l6VaZk4k3PVWPydYl343D\nCgqZe4zYXv/pNZmkbUUUgfOocxkdPUiaC5qPr6VbaoTwn04wiDFO/SOJYyRq\nWXjHrifH8E2rU4JiW+rRuPc5ZHGdO/lCXqpguOFx+n7CsKuNQ8YxTcqXPuvg\nC4AckGIjganDJ2cPF3XorC7HfDAb0EHuacKysvg0WCGDul0zWkEpyWQpHgBe\nJGFcNeporyE6v2+hjWbcBL4YPmkXvUujbMEVpEGWl7zlJXMi071R/JaQsIR+\n+jT0TFPkaXnn3OFllXqHaytSvd0lTHe5xtJYpVDjKbVCQ9DEcdywZcKRoNi0\nnXNaijGsdFBN/r+60F7/AbBtyRGdqMypL7kplRK1zcfpl6QVOf1LbcYKBEwv\nibvn3Wdz+/CL0oCvV4UoHrK8DVZ6rYT06FCGjZg902tcu6nWfeKzECvLLFDQ\naaCR8iqxmAGtTSzJrnikeFWnCQe6PpeHutY5CmnyomL/oJc1r61fvZta0pDs\nOZ8c76CHUDgHB1wM8Ple7eoOJ3YQI5m1Mt7CouvQ8twuqaDSKjUuVZniPCgQ\nV/ap\r\n=w0bQ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBxVHCcp1bQTgtVRIt54NXurGt7hu0uBDBOtP401Ayr9AiEArZqNrFrsZqcHafSlo0eBjTGIt7LyOD89XSvXljimVHQ="}],"size":2215,"noattachment":false,"key":"/new-github-release-url/-/new-github-release-url-0.1.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/new-github-release-url_0.1.0_1543768552702_0.9680940419980135"},"_hasShrinkwrap":false,"readme":"# new-github-release-url\n\n> Generate a URL for opening a new GitHub release with prefilled tag, body, and other fields\n\nGitHub supports prefilling a new release by setting [certain search parameters](https://github.com/isaacs/github/issues/1410#issuecomment-442240267). This package simplifies generating such URL.\n\n## Install\n\n```sh\n$ npm install new-github-release-url\n```\n\n## Usage\n\n```js\nimport newGithubReleaseUrl from 'new-github-release-url';\nimport open from 'open';\n\nconst url = newGithubReleaseUrl({\n\tuser: 'sindresorhus',\n\trepo: 'new-github-release-url',\n\tbody: '\\n\\n\\n---\\nI\\'m a human. Please be nice.'\n});\n//=> 'https://github.com/sindresorhus/new-github-release-url/releases/new?body=%0A%0A%0A---%0AI%27m+a+human.+Please+be+nice.'\n\n// Then open it\nawait open(url);\n```\n\n## API\n\n### newGithubReleaseUrl(options)\n\nReturns a URL string.\n\n#### options\n\nType: `object`\n\nYou are required to either specify the `repoUrl` option or both the `user` and `repo` options.\n\n##### repoUrl\n\nType: `string`\n\nThe full URL to the repo.\n\n##### user\n\nType: `string`\n\nGitHub username or organization.\n\n##### repo\n\nType: `string`\n\nGitHub repo.\n\n##### tag\n\nType: `string`\n\nThe tag name of the release.\n\n##### target\n\nType: `string`\\\nDefault: The default branch\n\nThe branch name or commit SHA to point the release's tag at, if the tag doesn't already exist.\n\n##### title\n\nType: `string`\n\nThe title of the release.\n\nGitHub shows the `tag` name when not specified.\n\n##### body\n\nType: `string`\n\nThe description text of the release.\n\n##### isPrerelease\n\nType: `boolean`\\\nDefault: `false`\n\nWhether the release should be marked as a pre-release.\n\n## Related\n\n- [new-github-issue-url](https://github.com/sindresorhus/new-github-issue-url) - Generate a URL for opening a new GitHub issue with prefilled title, body, and other fields\n","publish_time":1543768552810,"_cnpm_publish_time":1543768552810,"dist-tags":{"latest":"2.0.0"}}