Add save svg-badge directly to gist

This adds the posibility of saving an SVG badge generated by the same
shields.io dirictly to the gist. Instead of prepering a JSON file to
be sent to their service, we use their library directly, which outputs
an SVG file that we can save to the user’s gist.

Filenames ending in `.svg` will use this library automatically.

Additionally there is a major refactoring where the older `node:http`
library has been swapped out for `fetch`.

Also swap from node 16 to node 20

fixes #24
This commit is contained in:
Rúnar Berg
2023-09-26 17:37:34 -07:00
parent b7809ee0af
commit a2d3829b14
63 changed files with 4632 additions and 137 deletions

28
node_modules/binary-search/package.json generated vendored Normal file
View File

@@ -0,0 +1,28 @@
{
"name": "binary-search",
"version": "1.3.6",
"description": "tiny binary search function with comparators",
"license": "CC0-1.0",
"typings": "./binary-search.d.ts",
"author": {
"name": "The Dark Sky Company, LLC",
"email": "support@darkskyapp.com"
},
"contributors": [
{
"name": "Darcy Parker",
"web": "https://github.com/darcyparker"
}
],
"repository": {
"type": "git",
"url": "git://github.com/darkskyapp/binary-search.git"
},
"devDependencies": {
"chai": "^4.2.0",
"mocha": "^5.2.0"
},
"scripts": {
"test": "mocha"
}
}