From e66c2af09829632f68d5744e9bd13b33c52d510c Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 12:38:23 +0530 Subject: [PATCH 01/13] testing auto readme version --- .github/customReplacer.json | 7 +++++++ .github/workflows/readme-version.yml | 22 ++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 .github/customReplacer.json create mode 100644 .github/workflows/readme-version.yml diff --git a/.github/customReplacer.json b/.github/customReplacer.json new file mode 100644 index 0000000..38cd8d6 --- /dev/null +++ b/.github/customReplacer.json @@ -0,0 +1,7 @@ +[ + { + "search": "{version}", + "replace": "'v'+require(./package.json).version", + "eval": true + } +] diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml new file mode 100644 index 0000000..0b9396b --- /dev/null +++ b/.github/workflows/readme-version.yml @@ -0,0 +1,22 @@ +name: Replace placeholders + +on: + push: + workflow_dispatch: # Allow manual trigger + +jobs: + replace: + runs-on: ubuntu-latest + name: Replace Placeholders in File. + + steps: + - uses: actions/checkout@2.3.4 + # Please replace {version} with the latest available release. + - uses: Readme-Workflows/readme-replacer@{version} + env: + GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} + with: + # Those are all default values and only are shown for demonstration + TEMPLATE_FILE: './README.md' + COMMIT_FILE: './README.md' + CUSTOM_REPLACER_FILE: './.github/customReplacer.json' \ No newline at end of file From 354f66ce2762af77b4a8aad040ce6c69ffe5d21f Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 13:00:14 +0530 Subject: [PATCH 02/13] Update readme-version.yml --- .github/workflows/readme-version.yml | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index 0b9396b..d7c7687 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -8,15 +8,14 @@ jobs: replace: runs-on: ubuntu-latest name: Replace Placeholders in File. - + steps: - uses: actions/checkout@2.3.4 - # Please replace {version} with the latest available release. - - uses: Readme-Workflows/readme-replacer@{version} + - uses: Readme-Workflows/readme-replacer@main env: - GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: { { secrets.GITHUB_TOKEN } } with: # Those are all default values and only are shown for demonstration - TEMPLATE_FILE: './README.md' - COMMIT_FILE: './README.md' - CUSTOM_REPLACER_FILE: './.github/customReplacer.json' \ No newline at end of file + TEMPLATE_FILE: "./README.md" + COMMIT_FILE: "./README.md" + CUSTOM_REPLACER_FILE: "./.github/customReplacer.json" From 5242ca492ab558c32b9a1b64c990c3c390253a32 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 13:03:28 +0530 Subject: [PATCH 03/13] Update readme-version.yml --- .github/workflows/readme-version.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index d7c7687..f3caf32 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -12,10 +12,7 @@ jobs: steps: - uses: actions/checkout@2.3.4 - uses: Readme-Workflows/readme-replacer@main - env: - GITHUB_TOKEN: { { secrets.GITHUB_TOKEN } } with: - # Those are all default values and only are shown for demonstration TEMPLATE_FILE: "./README.md" COMMIT_FILE: "./README.md" CUSTOM_REPLACER_FILE: "./.github/customReplacer.json" From b2990f3e4c54e705673b7b6568df525fca80c884 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 13:59:27 +0530 Subject: [PATCH 04/13] testing --- .github/customReplacer.json | 2 +- .github/workflows/readme-version.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/customReplacer.json b/.github/customReplacer.json index 38cd8d6..3c592e1 100644 --- a/.github/customReplacer.json +++ b/.github/customReplacer.json @@ -1,7 +1,7 @@ [ { "search": "{version}", - "replace": "'v'+require(./package.json).version", + "replace": "'v'+require('../package.json').version", "eval": true } ] diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index f3caf32..7bd24f0 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -10,7 +10,7 @@ jobs: name: Replace Placeholders in File. steps: - - uses: actions/checkout@2.3.4 + - uses: actions/checkout@v2 - uses: Readme-Workflows/readme-replacer@main with: TEMPLATE_FILE: "./README.md" From 48da1cf9b9bb493666f7b2b4ececccbf3e51c3be Mon Sep 17 00:00:00 2001 From: replacer-bot <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 08:29:44 +0000 Subject: [PATCH 05/13] =?UTF-8?q?=E2=9A=A1=20Update=20README=20by=20replac?= =?UTF-8?q?ing=20keywords?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 417f5f1..e741f8b 100644 --- a/README.md +++ b/README.md @@ -24,8 +24,8 @@ jobs: steps: - uses: actions/checkout@2.3.4 - # Please replace {version} with the latest available release. - - uses: Readme-Workflows/readme-replacer@{version} + # Please replace v1.0.0 with the latest available release. + - uses: Readme-Workflows/readme-replacer@v1.0.0 env: GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} with: From 79e3eebaee96a4ab628ba1454a577ab45fac2a41 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 14:24:22 +0530 Subject: [PATCH 06/13] added template to automate readme version --- .eslintignore | 1 + .github/workflows/readme-version.yml | 5 +- README.md | 6 +-- TEMPLATE.md | 77 ++++++++++++++++++++++++++++ 4 files changed, 83 insertions(+), 6 deletions(-) create mode 100644 .eslintignore create mode 100644 TEMPLATE.md diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..53c37a1 --- /dev/null +++ b/.eslintignore @@ -0,0 +1 @@ +dist \ No newline at end of file diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index 7bd24f0..15cbc97 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -1,7 +1,8 @@ name: Replace placeholders on: - push: + release: + types: [published] workflow_dispatch: # Allow manual trigger jobs: @@ -13,6 +14,4 @@ jobs: - uses: actions/checkout@v2 - uses: Readme-Workflows/readme-replacer@main with: - TEMPLATE_FILE: "./README.md" - COMMIT_FILE: "./README.md" CUSTOM_REPLACER_FILE: "./.github/customReplacer.json" diff --git a/README.md b/README.md index e741f8b..722d671 100644 --- a/README.md +++ b/README.md @@ -23,9 +23,9 @@ jobs: name: Replace Placeholders in File. steps: - - uses: actions/checkout@2.3.4 - # Please replace v1.0.0 with the latest available release. - - uses: Readme-Workflows/readme-replacer@v1.0.0 + - uses: actions/checkout@v2 + # Please replace {version} with the latest available release. + - uses: Readme-Workflows/readme-replacer@{version} env: GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} with: diff --git a/TEMPLATE.md b/TEMPLATE.md new file mode 100644 index 0000000..cc1a243 --- /dev/null +++ b/TEMPLATE.md @@ -0,0 +1,77 @@ +[default]: https://github.com/Readme-Workflows/readme-replacer/blob/main/src/replacers.json +[discord]: https://discord.gg/2a9VC4AK6x + +# Readme-Replacer + +Readme-Replacer is a GitHub Action that allows you define your own collections of placeholder text to replace with specific values. +The Action is designed to be as flexible as possible and to work with other Actions. + +## Setup + +To Set up the Action, first create a new workflow file and populate it with the following values: +```yaml +name: Replace placeholders + +on: + schedule: + - cron: '*/30 * * * *' # Activate every 30 minutes + workflow_dispatch: # Allow manual trigger + +jobs: + replace: + runs-on: ubuntu-latest + name: Replace Placeholders in File. + + steps: + - uses: actions/checkout@v2 + - uses: Readme-Workflows/readme-replacer@{version} + env: + GITHUB_TOKEN: {{ secrets.GITHUB_TOKEN }} + with: + # Those are all default values and only are shown for demonstration + TEMPLATE_FILE: './TEMPLATE.md' + COMMIT_FILE: './README.md' + CUSTOM_REPLACER_FILE: './.github/customReplacer.json' +``` + +### Options + +| Option | Function | Default | +| ---------------------- | -------------------------------------------------------------------------------------------------- | ------------------------------------------------------- | +| `GH_USERNAME` | Name of the user used. | `Repository Owner` | +| `TEMPLATE_FILE` | The template MD file to get content from. | `./TEMPLATE.md` | +| `COMMIT_FILE` | The target MD file to update with the template. | `./README.md` | +| `CUSTOM_REPLACER_FILE` | JSON file that contains the placeholders and their replacements. | `./.github/customReplacer.json` | +| `DATE_FORMAT` | Format used to display the date in. | `dddd, mmmm, dS, yyyy, h:MM:ss TT` | +| `TIMEZONE` | Timezone to use for the date fomatting. Can be a relative GMT-time (i.e. `+2:00`) or Locale-based. | `0` | +| `COMMIT_MESSAGE` | Message to use for the commit. | `⚡ Update README by replacing keywords` | +| `COMMIT_EMAIL` | E-Mail used for the Committer. | `41898282+github-actions[bot]@users.noreply.github.com` | +| `COMMIT_NAME` | Name used for the Committer. | `replacer-bot` | + +### Replacer JSON file + +A key-feature of this Action is the ability to define your own placeholders and their replacement for it. +This is done by creating and using a JSON file (Called `customReplacer.json` and located within the `.github` directory) and configuring it to have the right values. + +The structure of the JSON file may look like this: +```json +[ + { + "search": "{foo}", + "replace": "Bar", + "eval": false + } +] +``` +Here is a quick rundown of the different options: + +- `search` is the text that the Action should look for in the Template file. It can be any text you like. +- `replace` is the value that the `search` value should be replaced with. In our example above would any appearance of `{foo}` be replaced with `Bar`. +- `eval` is a boolean to set whether the `replace` value should be evaluated by the Action for further manipulation. It essentially allows you to set Javascript code that would be executed when the Action runs (i.e. `new Date().toLocaleString()` would be executed as Javascript code and the result used as replacement for the search string). + +You can find a [JSON file][default] which would be the default placeholders in the workflow in this repository. + +## Links + +- [Discord] + Make sure to follow the `#news` channel for any updates towards this and any other Products of the Readme-Workflows Organisation! From 05269c94a1b9cb3c00bc990217d4dba444c0e8a1 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 14:37:19 +0530 Subject: [PATCH 07/13] Update readme-version.yml --- .github/workflows/readme-version.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index 15cbc97..a5bdec9 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -3,6 +3,8 @@ name: Replace placeholders on: release: types: [published] + branches: + - main workflow_dispatch: # Allow manual trigger jobs: From bcddf000e9e3f4b61983b743fa32d6a9b5823ce1 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 16:14:12 +0530 Subject: [PATCH 08/13] Update .github/customReplacer.json Co-authored-by: Puneet Gopinath --- .github/customReplacer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/customReplacer.json b/.github/customReplacer.json index 3c592e1..2233a0d 100644 --- a/.github/customReplacer.json +++ b/.github/customReplacer.json @@ -1,7 +1,7 @@ [ { "search": "{version}", - "replace": "'v'+require('../package.json').version", + "replace": "'v' + require('../package.json').version", "eval": true } ] From fbc7c2e02ccb022352371565b42b32ab8da9d728 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 17:07:27 +0530 Subject: [PATCH 09/13] Update readme-version.yml --- .github/workflows/readme-version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index a5bdec9..44a1e5d 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -17,3 +17,4 @@ jobs: - uses: Readme-Workflows/readme-replacer@main with: CUSTOM_REPLACER_FILE: "./.github/customReplacer.json" + DATE_FORMAT: 'DD-MM-YYYY "UTC"' From 16ff40da164874e8979de03ff306e41853fb1775 Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 17:22:16 +0530 Subject: [PATCH 10/13] added changelog replacer --- .github/changelogReplacer.json | 7 ++++++ ...stomReplacer.json => versionReplacer.json} | 0 .github/workflows/changelog-date.yml | 22 +++++++++++++++++++ .github/workflows/readme-version.yml | 3 +-- src/config.js | 4 ++-- src/customReplacer.js | 2 +- src/replace.js | 2 +- src/replacers.json | 3 ++- 8 files changed, 36 insertions(+), 7 deletions(-) create mode 100644 .github/changelogReplacer.json rename .github/{customReplacer.json => versionReplacer.json} (100%) create mode 100644 .github/workflows/changelog-date.yml diff --git a/.github/changelogReplacer.json b/.github/changelogReplacer.json new file mode 100644 index 0000000..2c08beb --- /dev/null +++ b/.github/changelogReplacer.json @@ -0,0 +1,7 @@ +[ + { + "search": "{TBA}", + "replace": "DATETIME", + "eval": true + } +] diff --git a/.github/customReplacer.json b/.github/versionReplacer.json similarity index 100% rename from .github/customReplacer.json rename to .github/versionReplacer.json diff --git a/.github/workflows/changelog-date.yml b/.github/workflows/changelog-date.yml new file mode 100644 index 0000000..528ca0a --- /dev/null +++ b/.github/workflows/changelog-date.yml @@ -0,0 +1,22 @@ +name: Replace placeholders + +on: + release: + types: [published] + branches: + - main + workflow_dispatch: # Allow manual trigger + +jobs: + replace: + runs-on: ubuntu-latest + name: Replace Placeholders in File. + + steps: + - uses: actions/checkout@v2 + - uses: Readme-Workflows/readme-replacer@main + with: + CUSTOM_REPLACER_FILE: "./.github/changelogReplacer.json" + DATE_FORMAT: 'DD-MM-YYYY "UTC"' + TEMPLATE_FILE: "./CHANGELOG.md" + COMMIT_FILE: "./CHANGELOG.md" diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml index 44a1e5d..a70c121 100644 --- a/.github/workflows/readme-version.yml +++ b/.github/workflows/readme-version.yml @@ -16,5 +16,4 @@ jobs: - uses: actions/checkout@v2 - uses: Readme-Workflows/readme-replacer@main with: - CUSTOM_REPLACER_FILE: "./.github/customReplacer.json" - DATE_FORMAT: 'DD-MM-YYYY "UTC"' + CUSTOM_REPLACER_FILE: "./.github/versionReplacer.json" diff --git a/src/config.js b/src/config.js index fad0fe9..7a151cf 100644 --- a/src/config.js +++ b/src/config.js @@ -13,7 +13,7 @@ const COMMIT_MESSAGE = core.getInput("COMMIT_MESSAGE"); const COMMIT_EMAIL = core.getInput("COMMIT_EMAIL"); const COMMIT_NAME = core.getInput("COMMIT_NAME"); -const TIMEZONE = getDate( +const DATETIME = getDate( core.getInput("DATE_FORMAT"), core.getInput("TIMEZONE") ); @@ -26,5 +26,5 @@ module.exports = { COMMIT_MESSAGE, COMMIT_EMAIL, COMMIT_NAME, - TIMEZONE, + DATETIME, }; diff --git a/src/customReplacer.js b/src/customReplacer.js index afec37b..786fa13 100644 --- a/src/customReplacer.js +++ b/src/customReplacer.js @@ -1,5 +1,5 @@ // eslint-disable-next-line no-unused-vars -const { TIMEZONE } = require("./config"); +const { DATETIME } = require("./config"); /** * Copyright (c) 2021 The Readme-Workflows organisation and Contributors diff --git a/src/replace.js b/src/replace.js index e443f2f..68f6ad1 100644 --- a/src/replace.js +++ b/src/replace.js @@ -4,7 +4,7 @@ /* eslint-disable no-unused-vars */ const fs = require("fs"); -const { CUSTOM_REPLACER_FILE, TIMEZONE } = require("./config"); +const { CUSTOM_REPLACER_FILE, DATETIME } = require("./config"); const customReplacer = require("./customReplacer"); const replacers = require("./replacers.json"); diff --git a/src/replacers.json b/src/replacers.json index fa47a75..2c17fdd 100644 --- a/src/replacers.json +++ b/src/replacers.json @@ -1,7 +1,8 @@ [ { + "comment": "Adds date and time in format specified in DATE_FORMAT input in YAML", "search": "{replace: DATE}", - "replace": "TIMEZONE", + "replace": "DATETIME", "eval": true } ] From 121c425fe718259b89a0135590613f9776adfbf9 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 16 Jul 2021 11:52:54 +0000 Subject: [PATCH 11/13] chore: build and format --- dist/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/index.js b/dist/index.js index 572cf53..dbe3df9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -21497,7 +21497,7 @@ const COMMIT_MESSAGE = core.getInput("COMMIT_MESSAGE"); const COMMIT_EMAIL = core.getInput("COMMIT_EMAIL"); const COMMIT_NAME = core.getInput("COMMIT_NAME"); -const TIMEZONE = getDate( +const DATETIME = getDate( core.getInput("DATE_FORMAT"), core.getInput("TIMEZONE") ); @@ -21510,7 +21510,7 @@ module.exports = { COMMIT_MESSAGE, COMMIT_EMAIL, COMMIT_NAME, - TIMEZONE, + DATETIME, }; @@ -21520,7 +21520,7 @@ module.exports = { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { // eslint-disable-next-line no-unused-vars -const { TIMEZONE } = __nccwpck_require__(4570); +const { DATETIME } = __nccwpck_require__(4570); /** * Copyright (c) 2021 The Readme-Workflows organisation and Contributors @@ -21672,7 +21672,7 @@ module.exports = (format, timezone) => { /* eslint-disable no-unused-vars */ const fs = __nccwpck_require__(5747); -const { CUSTOM_REPLACER_FILE, TIMEZONE } = __nccwpck_require__(4570); +const { CUSTOM_REPLACER_FILE, DATETIME } = __nccwpck_require__(4570); const customReplacer = __nccwpck_require__(9239); const replacers = __nccwpck_require__(3656); @@ -21763,7 +21763,7 @@ module.exports = JSON.parse('{"name":"signale","version":"1.4.0","description":" /***/ ((module) => { "use strict"; -module.exports = JSON.parse('[{"search":"{replace: DATE}","replace":"TIMEZONE","eval":true}]'); +module.exports = JSON.parse('[{"comment":"Adds date and time in format specified in DATE_FORMAT input in YAML","search":"{replace: DATE}","replace":"DATETIME","eval":true}]'); /***/ }), From 4c2ddec3bcac290c6d735dad24d8a284da682d1a Mon Sep 17 00:00:00 2001 From: ABHISHEK Joshi Date: Fri, 16 Jul 2021 17:31:39 +0530 Subject: [PATCH 12/13] post release workflow --- .../{changelog-date.yml => post-release.yml} | 4 ++++ .github/workflows/readme-version.yml | 19 ------------------- 2 files changed, 4 insertions(+), 19 deletions(-) rename .github/workflows/{changelog-date.yml => post-release.yml} (79%) delete mode 100644 .github/workflows/readme-version.yml diff --git a/.github/workflows/changelog-date.yml b/.github/workflows/post-release.yml similarity index 79% rename from .github/workflows/changelog-date.yml rename to .github/workflows/post-release.yml index 528ca0a..980a575 100644 --- a/.github/workflows/changelog-date.yml +++ b/.github/workflows/post-release.yml @@ -20,3 +20,7 @@ jobs: DATE_FORMAT: 'DD-MM-YYYY "UTC"' TEMPLATE_FILE: "./CHANGELOG.md" COMMIT_FILE: "./CHANGELOG.md" + + - uses: Readme-Workflows/readme-replacer@main + with: + CUSTOM_REPLACER_FILE: "./.github/versionReplacer.json" diff --git a/.github/workflows/readme-version.yml b/.github/workflows/readme-version.yml deleted file mode 100644 index a70c121..0000000 --- a/.github/workflows/readme-version.yml +++ /dev/null @@ -1,19 +0,0 @@ -name: Replace placeholders - -on: - release: - types: [published] - branches: - - main - workflow_dispatch: # Allow manual trigger - -jobs: - replace: - runs-on: ubuntu-latest - name: Replace Placeholders in File. - - steps: - - uses: actions/checkout@v2 - - uses: Readme-Workflows/readme-replacer@main - with: - CUSTOM_REPLACER_FILE: "./.github/versionReplacer.json" From b837ecc142e312b4bb082f601aba16d6c35a40a3 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 20 Jul 2021 17:24:25 +0000 Subject: [PATCH 13/13] chore: build and format --- dist/index.js | 304 +++++++++++++++++++++++++------------------------- 1 file changed, 152 insertions(+), 152 deletions(-) diff --git a/dist/index.js b/dist/index.js index ea101b1..312f47a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -20248,158 +20248,158 @@ module.exports = function (fromModel) { /***/ ((module) => { "use strict"; - - -module.exports = { - "aliceblue": [240, 248, 255], - "antiquewhite": [250, 235, 215], - "aqua": [0, 255, 255], - "aquamarine": [127, 255, 212], - "azure": [240, 255, 255], - "beige": [245, 245, 220], - "bisque": [255, 228, 196], - "black": [0, 0, 0], - "blanchedalmond": [255, 235, 205], - "blue": [0, 0, 255], - "blueviolet": [138, 43, 226], - "brown": [165, 42, 42], - "burlywood": [222, 184, 135], - "cadetblue": [95, 158, 160], - "chartreuse": [127, 255, 0], - "chocolate": [210, 105, 30], - "coral": [255, 127, 80], - "cornflowerblue": [100, 149, 237], - "cornsilk": [255, 248, 220], - "crimson": [220, 20, 60], - "cyan": [0, 255, 255], - "darkblue": [0, 0, 139], - "darkcyan": [0, 139, 139], - "darkgoldenrod": [184, 134, 11], - "darkgray": [169, 169, 169], - "darkgreen": [0, 100, 0], - "darkgrey": [169, 169, 169], - "darkkhaki": [189, 183, 107], - "darkmagenta": [139, 0, 139], - "darkolivegreen": [85, 107, 47], - "darkorange": [255, 140, 0], - "darkorchid": [153, 50, 204], - "darkred": [139, 0, 0], - "darksalmon": [233, 150, 122], - "darkseagreen": [143, 188, 143], - "darkslateblue": [72, 61, 139], - "darkslategray": [47, 79, 79], - "darkslategrey": [47, 79, 79], - "darkturquoise": [0, 206, 209], - "darkviolet": [148, 0, 211], - "deeppink": [255, 20, 147], - "deepskyblue": [0, 191, 255], - "dimgray": [105, 105, 105], - "dimgrey": [105, 105, 105], - "dodgerblue": [30, 144, 255], - "firebrick": [178, 34, 34], - "floralwhite": [255, 250, 240], - "forestgreen": [34, 139, 34], - "fuchsia": [255, 0, 255], - "gainsboro": [220, 220, 220], - "ghostwhite": [248, 248, 255], - "gold": [255, 215, 0], - "goldenrod": [218, 165, 32], - "gray": [128, 128, 128], - "green": [0, 128, 0], - "greenyellow": [173, 255, 47], - "grey": [128, 128, 128], - "honeydew": [240, 255, 240], - "hotpink": [255, 105, 180], - "indianred": [205, 92, 92], - "indigo": [75, 0, 130], - "ivory": [255, 255, 240], - "khaki": [240, 230, 140], - "lavender": [230, 230, 250], - "lavenderblush": [255, 240, 245], - "lawngreen": [124, 252, 0], - "lemonchiffon": [255, 250, 205], - "lightblue": [173, 216, 230], - "lightcoral": [240, 128, 128], - "lightcyan": [224, 255, 255], - "lightgoldenrodyellow": [250, 250, 210], - "lightgray": [211, 211, 211], - "lightgreen": [144, 238, 144], - "lightgrey": [211, 211, 211], - "lightpink": [255, 182, 193], - "lightsalmon": [255, 160, 122], - "lightseagreen": [32, 178, 170], - "lightskyblue": [135, 206, 250], - "lightslategray": [119, 136, 153], - "lightslategrey": [119, 136, 153], - "lightsteelblue": [176, 196, 222], - "lightyellow": [255, 255, 224], - "lime": [0, 255, 0], - "limegreen": [50, 205, 50], - "linen": [250, 240, 230], - "magenta": [255, 0, 255], - "maroon": [128, 0, 0], - "mediumaquamarine": [102, 205, 170], - "mediumblue": [0, 0, 205], - "mediumorchid": [186, 85, 211], - "mediumpurple": [147, 112, 219], - "mediumseagreen": [60, 179, 113], - "mediumslateblue": [123, 104, 238], - "mediumspringgreen": [0, 250, 154], - "mediumturquoise": [72, 209, 204], - "mediumvioletred": [199, 21, 133], - "midnightblue": [25, 25, 112], - "mintcream": [245, 255, 250], - "mistyrose": [255, 228, 225], - "moccasin": [255, 228, 181], - "navajowhite": [255, 222, 173], - "navy": [0, 0, 128], - "oldlace": [253, 245, 230], - "olive": [128, 128, 0], - "olivedrab": [107, 142, 35], - "orange": [255, 165, 0], - "orangered": [255, 69, 0], - "orchid": [218, 112, 214], - "palegoldenrod": [238, 232, 170], - "palegreen": [152, 251, 152], - "paleturquoise": [175, 238, 238], - "palevioletred": [219, 112, 147], - "papayawhip": [255, 239, 213], - "peachpuff": [255, 218, 185], - "peru": [205, 133, 63], - "pink": [255, 192, 203], - "plum": [221, 160, 221], - "powderblue": [176, 224, 230], - "purple": [128, 0, 128], - "rebeccapurple": [102, 51, 153], - "red": [255, 0, 0], - "rosybrown": [188, 143, 143], - "royalblue": [65, 105, 225], - "saddlebrown": [139, 69, 19], - "salmon": [250, 128, 114], - "sandybrown": [244, 164, 96], - "seagreen": [46, 139, 87], - "seashell": [255, 245, 238], - "sienna": [160, 82, 45], - "silver": [192, 192, 192], - "skyblue": [135, 206, 235], - "slateblue": [106, 90, 205], - "slategray": [112, 128, 144], - "slategrey": [112, 128, 144], - "snow": [255, 250, 250], - "springgreen": [0, 255, 127], - "steelblue": [70, 130, 180], - "tan": [210, 180, 140], - "teal": [0, 128, 128], - "thistle": [216, 191, 216], - "tomato": [255, 99, 71], - "turquoise": [64, 224, 208], - "violet": [238, 130, 238], - "wheat": [245, 222, 179], - "white": [255, 255, 255], - "whitesmoke": [245, 245, 245], - "yellow": [255, 255, 0], - "yellowgreen": [154, 205, 50] -}; + + +module.exports = { + "aliceblue": [240, 248, 255], + "antiquewhite": [250, 235, 215], + "aqua": [0, 255, 255], + "aquamarine": [127, 255, 212], + "azure": [240, 255, 255], + "beige": [245, 245, 220], + "bisque": [255, 228, 196], + "black": [0, 0, 0], + "blanchedalmond": [255, 235, 205], + "blue": [0, 0, 255], + "blueviolet": [138, 43, 226], + "brown": [165, 42, 42], + "burlywood": [222, 184, 135], + "cadetblue": [95, 158, 160], + "chartreuse": [127, 255, 0], + "chocolate": [210, 105, 30], + "coral": [255, 127, 80], + "cornflowerblue": [100, 149, 237], + "cornsilk": [255, 248, 220], + "crimson": [220, 20, 60], + "cyan": [0, 255, 255], + "darkblue": [0, 0, 139], + "darkcyan": [0, 139, 139], + "darkgoldenrod": [184, 134, 11], + "darkgray": [169, 169, 169], + "darkgreen": [0, 100, 0], + "darkgrey": [169, 169, 169], + "darkkhaki": [189, 183, 107], + "darkmagenta": [139, 0, 139], + "darkolivegreen": [85, 107, 47], + "darkorange": [255, 140, 0], + "darkorchid": [153, 50, 204], + "darkred": [139, 0, 0], + "darksalmon": [233, 150, 122], + "darkseagreen": [143, 188, 143], + "darkslateblue": [72, 61, 139], + "darkslategray": [47, 79, 79], + "darkslategrey": [47, 79, 79], + "darkturquoise": [0, 206, 209], + "darkviolet": [148, 0, 211], + "deeppink": [255, 20, 147], + "deepskyblue": [0, 191, 255], + "dimgray": [105, 105, 105], + "dimgrey": [105, 105, 105], + "dodgerblue": [30, 144, 255], + "firebrick": [178, 34, 34], + "floralwhite": [255, 250, 240], + "forestgreen": [34, 139, 34], + "fuchsia": [255, 0, 255], + "gainsboro": [220, 220, 220], + "ghostwhite": [248, 248, 255], + "gold": [255, 215, 0], + "goldenrod": [218, 165, 32], + "gray": [128, 128, 128], + "green": [0, 128, 0], + "greenyellow": [173, 255, 47], + "grey": [128, 128, 128], + "honeydew": [240, 255, 240], + "hotpink": [255, 105, 180], + "indianred": [205, 92, 92], + "indigo": [75, 0, 130], + "ivory": [255, 255, 240], + "khaki": [240, 230, 140], + "lavender": [230, 230, 250], + "lavenderblush": [255, 240, 245], + "lawngreen": [124, 252, 0], + "lemonchiffon": [255, 250, 205], + "lightblue": [173, 216, 230], + "lightcoral": [240, 128, 128], + "lightcyan": [224, 255, 255], + "lightgoldenrodyellow": [250, 250, 210], + "lightgray": [211, 211, 211], + "lightgreen": [144, 238, 144], + "lightgrey": [211, 211, 211], + "lightpink": [255, 182, 193], + "lightsalmon": [255, 160, 122], + "lightseagreen": [32, 178, 170], + "lightskyblue": [135, 206, 250], + "lightslategray": [119, 136, 153], + "lightslategrey": [119, 136, 153], + "lightsteelblue": [176, 196, 222], + "lightyellow": [255, 255, 224], + "lime": [0, 255, 0], + "limegreen": [50, 205, 50], + "linen": [250, 240, 230], + "magenta": [255, 0, 255], + "maroon": [128, 0, 0], + "mediumaquamarine": [102, 205, 170], + "mediumblue": [0, 0, 205], + "mediumorchid": [186, 85, 211], + "mediumpurple": [147, 112, 219], + "mediumseagreen": [60, 179, 113], + "mediumslateblue": [123, 104, 238], + "mediumspringgreen": [0, 250, 154], + "mediumturquoise": [72, 209, 204], + "mediumvioletred": [199, 21, 133], + "midnightblue": [25, 25, 112], + "mintcream": [245, 255, 250], + "mistyrose": [255, 228, 225], + "moccasin": [255, 228, 181], + "navajowhite": [255, 222, 173], + "navy": [0, 0, 128], + "oldlace": [253, 245, 230], + "olive": [128, 128, 0], + "olivedrab": [107, 142, 35], + "orange": [255, 165, 0], + "orangered": [255, 69, 0], + "orchid": [218, 112, 214], + "palegoldenrod": [238, 232, 170], + "palegreen": [152, 251, 152], + "paleturquoise": [175, 238, 238], + "palevioletred": [219, 112, 147], + "papayawhip": [255, 239, 213], + "peachpuff": [255, 218, 185], + "peru": [205, 133, 63], + "pink": [255, 192, 203], + "plum": [221, 160, 221], + "powderblue": [176, 224, 230], + "purple": [128, 0, 128], + "rebeccapurple": [102, 51, 153], + "red": [255, 0, 0], + "rosybrown": [188, 143, 143], + "royalblue": [65, 105, 225], + "saddlebrown": [139, 69, 19], + "salmon": [250, 128, 114], + "sandybrown": [244, 164, 96], + "seagreen": [46, 139, 87], + "seashell": [255, 245, 238], + "sienna": [160, 82, 45], + "silver": [192, 192, 192], + "skyblue": [135, 206, 235], + "slateblue": [106, 90, 205], + "slategray": [112, 128, 144], + "slategrey": [112, 128, 144], + "snow": [255, 250, 250], + "springgreen": [0, 255, 127], + "steelblue": [70, 130, 180], + "tan": [210, 180, 140], + "teal": [0, 128, 128], + "thistle": [216, 191, 216], + "tomato": [255, 99, 71], + "turquoise": [64, 224, 208], + "violet": [238, 130, 238], + "wheat": [245, 222, 179], + "white": [255, 255, 255], + "whitesmoke": [245, 245, 245], + "yellow": [255, 255, 0], + "yellowgreen": [154, 205, 50] +}; /***/ }),