{"name":"new-github-release-url","version":"1.0.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 && tsd","start":"node example.js"},"keywords":["github","release","releases","new","generate","url","gh","query","search","parameters","params"],"dependencies":{"type-fest":"^0.4.1"},"devDependencies":{"ava":"^1.4.1","open":"^6.1.0","tsd":"^0.7.2","xo":"^0.24.0"},"gitHead":"e8bb403bdd45520d8d8eab0a0cc0d8ac05dd891a","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@1.0.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"sindresorhus","email":"sindresorhus@gmail.com"},"dist":{"integrity":"sha512-dle7yf655IMjyFUqn6Nxkb18r4AOAkzRcgcZv6WZ0IqrOH4QCEZ8Sm6I7XX21zvHdBeeMeTkhR9qT2Z0EJDx6A==","shasum":"493847e6fecce39c247e9d89929be773d2e7f777","tarball":"http://registry-npm.ywwl.com/new-github-release-url/download/new-github-release-url-1.0.0.tgz","fileCount":5,"unpackedSize":6357,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcvsexCRA9TVsSAnZWagAAzooP/1ns87Ia5faEGbkmMyxX\nQN6UZydXbX3aYdebxS7qjfBLsljrLHQZNOnHE+CSkwCCUJxXSuiZKio1hrvp\nUaodW44kbnDXeWw2HdK1v+EtePDQvkENyfMOizl+j/SxLpU5jTts4qsMfgLK\nCMM39plo2HYxdchaLyLBqH6sI1LtPbNXe+ObLXT+TsNlsyM8jws6YMGhZmm9\nPzhGObkx4BKaatov/8uYLKYr+13QsZW2F4bF9rtKNB07U3DV+dfJL+oB1xN/\ncT9UAIubINCYLT5sAnAeTJfT0qKLDsEl3EHaYbbOzBviFVXujfnNMc0FomWL\nE++y8oMy/lmGkg9ayipYwN3OgmK8YSTHkPz1FOkNhWqIETSGTdrijdqci3Ny\nH5oBYQkZRC/45xP3NocfMGVmQvGNaJwZlWFIIfHsfBZPSEmIAzo/L/V3UX79\n3XtBJQN+lHDVZgKmlLvIHufYV14EpFLGDXiAOEFaboZTJfiowa0Km0cX9nPc\no3ejdemLxCVOqNhkLqaGLSoXRtpDuvarm6viBn3beVmXMfcGq8kIKtoyyQDt\nPmALtaqD5ljBsD6saskg1Ymufeh2HUOJgcxlrO5TjeTN6A39Dyt8XaH3mlqf\nwAogT3xbbwQqo9NXMmsH7d4qgvR9JsaiflHp7nrdVG9IuuYhfnFRcjZXQ9OU\nSGa7\r\n=tqqb\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCG1wICGkP0hDtwONiq5mKUyX5oLR0xpK25iHRDsxnjVAIhAKQwcCT5KHzGGespOdTCsQkWdmmUt81E3FQfnhsJp90A"}],"size":2566,"noattachment":false,"key":"/new-github-release-url/-/new-github-release-url-1.0.0.tgz"},"maintainers":[{"name":"sindresorhus","email":"sindresorhus@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/new-github-release-url_1.0.0_1556006833182_0.27107289810621094"},"_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":1556006833307,"_cnpm_publish_time":1556006833307,"dist-tags":{"latest":"2.0.0"}}