├── .gitignore ├── .vscode └── settings.json ├── deno.json ├── .github └── workflows │ ├── test.yml │ └── update.yml ├── redirect.ts ├── test ├── redirect.test.ts ├── regex.test.ts └── change.test.ts ├── update.ts ├── change.ts ├── LICENSE ├── regex.ts ├── README.md ├── cli.ts └── CODE_OF_CONDUCT.md /.gitignore: -------------------------------------------------------------------------------- 1 | deno.lock 2 | -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "deno.enable": true 3 | } 4 | -------------------------------------------------------------------------------- /deno.json: -------------------------------------------------------------------------------- 1 | { 2 | "tasks": { 3 | "install": "deno install --allow-read=./ --allow-net --allow-write=./ -f -n=deno-outdated ./cli.ts", 4 | "update": "deno run --allow-read=./ --allow-net --allow-write=./ ./cli.ts --ignore README.md", 5 | "test": "deno test --allow-net" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- 1 | name: test 2 | 3 | on: [pull_request, push] 4 | 5 | jobs: 6 | test: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v3 10 | - uses: denoland/setup-deno@v1 11 | with: 12 | deno-version: vx.x.x 13 | - name: Run tests 14 | id: test 15 | run: deno task test 16 | -------------------------------------------------------------------------------- /redirect.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Find the redirect of a URL, or `undefined` if no redirect exists. 3 | * @param url the URL 4 | */ 5 | export async function checkRedirect(url: string): Promise { 6 | const response = await fetch(url); 7 | 8 | await response.body?.cancel(); 9 | 10 | if (response.redirected) { 11 | return response.url + 12 | (url.endsWith("/") && !response.url.endsWith("/") ? "/" : ""); 13 | } else { 14 | return undefined; 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /test/redirect.test.ts: -------------------------------------------------------------------------------- 1 | import { checkRedirect } from "../redirect.ts"; 2 | import { 3 | assertEquals, 4 | assertNotEquals, 5 | } from "https://deno.land/std@0.192.0/testing/asserts.ts"; 6 | 7 | Deno.test("Redirects redirect to another URL (against deno.land/x)", async () => { 8 | const redirect = await checkRedirect("https://deno.land/x/cliffy/mod.ts"); // i-deno-outdated 9 | 10 | assertNotEquals(redirect, undefined); 11 | }); 12 | 13 | Deno.test("Redirects don't redirect to another URL (against deno.land/x)", async () => { 14 | const redirect = await checkRedirect( 15 | "https://deno.land/x/cliffy@v0.24.2/mod.ts?code", // i-deno-outdated 16 | ); 17 | 18 | assertEquals(redirect, undefined); 19 | }); 20 | -------------------------------------------------------------------------------- /update.ts: -------------------------------------------------------------------------------- 1 | import { apply } from "./regex.ts"; 2 | import { checkRedirect } from "./redirect.ts"; 3 | 4 | /** 5 | * Removes any versioning from a URL and finds the latest redirect for it 6 | * @param url The URL to check against 7 | * @returns The updated URL or undefined if it wasn't updated. 8 | */ 9 | export async function update(url: string): Promise { 10 | return (await checkRedirect(apply(url) ?? url)); 11 | } 12 | 13 | /** 14 | * Removes any versioning from a URL and finds the latest redirect for it 15 | * @param url The URL to check against 16 | * @returns The url whether it was updated or not. 17 | */ 18 | export async function updateOrSelf(url: string): Promise { 19 | return await update(url) ?? url; 20 | } 21 | -------------------------------------------------------------------------------- /change.ts: -------------------------------------------------------------------------------- 1 | import { regexes } from "./regex.ts"; 2 | import { updateOrSelf } from "./update.ts"; 3 | import replaceAsync from "https://esm.sh/string-replace-async@3.0.2"; 4 | 5 | export async function findAndReplace( 6 | source: string, 7 | flag = "i-deno-outdated", 8 | ): Promise { 9 | const lines = await Promise.all( 10 | source.split("\n").map((str) => 11 | regexes.reduce( 12 | async (prev, regex) => { 13 | const newPrev = await prev; 14 | if (newPrev.includes(flag)) { 15 | return newPrev; 16 | } 17 | return replaceAsync( 18 | newPrev, 19 | regex.validate, 20 | updateOrSelf, 21 | ); 22 | }, 23 | Promise.resolve(str), 24 | ) 25 | ), 26 | ); 27 | return lines.join("\n"); 28 | } 29 | -------------------------------------------------------------------------------- /test/regex.test.ts: -------------------------------------------------------------------------------- 1 | import { apply } from "../regex.ts"; 2 | import { assertEquals } from "https://deno.land/std@0.192.0/testing/asserts.ts"; 3 | 4 | Deno.test("Removal works (deno.land/x)", () => { 5 | const url = "https://deno.land/x/cliffy@v0.25.7/mod.ts"; 6 | 7 | assertEquals(apply(url), "https://deno.land/x/cliffy/mod.ts"); // i-deno-outdated 8 | }); 9 | 10 | Deno.test("Removal works (esm.sh)", () => { 11 | const url = "https://esm.sh/react@18.2.0"; 12 | 13 | assertEquals(apply(url), "https://esm.sh/react"); // i-deno-outdated 14 | }); 15 | 16 | Deno.test("Removal works (cdn.jsdelivr.net)", () => { 17 | const url = "https://cdn.jsdelivr.net/npm/jquery@3.2.1/dist/jquery.min.js"; 18 | 19 | assertEquals( 20 | apply(url), 21 | "https://cdn.jsdelivr.net/npm/jquery/dist/jquery.min.js", // i-deno-outdated 22 | ); 23 | }); 24 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2022 Tristan F. 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. -------------------------------------------------------------------------------- /regex.ts: -------------------------------------------------------------------------------- 1 | export interface Regex { 2 | validate: RegExp; 3 | removal: RegExp; 4 | } 5 | 6 | /* 7 | TODO all of the regexes currently follow: 8 | 9 | Match: /https\?:\\\/\\\/([\w.]+)\\\/\[\^ "'`\]\+\/g 10 | Replace: "$1" 11 | 12 | All cases follow similar of not exactly the same removal case. When more regexes are added, if they all follow this pattern, it may be possible to easily update new registries that follow this. 13 | */ 14 | export const regexes: Regex[] = [ 15 | { 16 | validate: /https?:\/\/deno.land\/[^ "'`]+/g, 17 | removal: /@[\w\d+\.]+/g, 18 | }, 19 | { 20 | validate: /https?:\/\/esm.sh\/[^ "'`]+/g, 21 | removal: /@[\d\.]+/g, 22 | }, 23 | { 24 | validate: /https?:\/\/cdn.jsdelivr.net\/[^ "'`]+/g, 25 | removal: /@[\d\.]+/g, 26 | }, 27 | { 28 | validate: /https?:\/\/unpkg.com\/[^ "'`]+/g, 29 | removal: /@[\w\d+\.]+/g, 30 | }, 31 | ]; 32 | 33 | /** 34 | * Applies a URL regex to a URL. Finds the first match of the validate regexp and removes any matches of the removal regexp. 35 | * @param url The URL to apply it on 36 | */ 37 | export function apply(url: string): string | undefined { 38 | for (const regex of regexes) { 39 | if (regex && regex.validate.test(url)) { 40 | return url.replace(regex.removal, ""); 41 | } 42 | } 43 | 44 | return undefined; 45 | } 46 | -------------------------------------------------------------------------------- /.github/workflows/update.yml: -------------------------------------------------------------------------------- 1 | name: update-dependencies 2 | 3 | on: 4 | workflow_dispatch: 5 | schedule: 6 | - cron: "42 19 * * *" 7 | 8 | jobs: 9 | update-dependencies: 10 | runs-on: ubuntu-latest 11 | steps: 12 | - uses: actions/checkout@v3 13 | - uses: denoland/setup-deno@v1 14 | with: 15 | deno-version: vx.x.x 16 | - name: Update dependencies 17 | run: deno task update 18 | - name: Remove deno.lock # Remove this if you're using deno for an application 19 | run: rm deno.lock 20 | - name: Create Pull Request 21 | uses: peter-evans/create-pull-request@v3 22 | id: pr 23 | with: 24 | commit-message: "Update dependencies" 25 | title: Update dependencies 26 | body: > 27 | Updated dependencies 28 | 29 | Generated by [deno-outdated](https://github.com/LeoDog896/deno-outdated). 30 | branch: deno-dependency-updates 31 | author: GitHub 32 | delete-branch: true 33 | - name: Set commit status with pending 34 | uses: Sibz/github-status-action@v1 35 | with: 36 | authToken: ${{ secrets.GITHUB_TOKEN }} 37 | context: "Basic tests" 38 | state: "pending" 39 | sha: ${{github.event.pull_request.head.sha || github.sha}} 40 | - name: Basic tests 41 | id: test 42 | continue-on-error: true 43 | run: | 44 | deno task test 45 | - name: Set commit status with outcome 46 | uses: Sibz/github-status-action@v1 47 | with: 48 | authToken: ${{ secrets.GITHUB_TOKEN }} 49 | context: "Basic tests" 50 | description: "To run other CI actions close/reopen this PR" 51 | state: ${{ steps.test.outcome }} 52 | sha: ${{github.event.pull_request.head.sha || github.sha}} 53 | -------------------------------------------------------------------------------- /test/change.test.ts: -------------------------------------------------------------------------------- 1 | // Meta-testing deno-outdated is a bit weird, thus the usage of deno-fmt-ignore (to stop fmt from wrapping around i-deno-outdated lines, and i-deno-outdated) 2 | 3 | import { findAndReplace } from "../change.ts"; 4 | import { 5 | assert, 6 | assertEquals, 7 | assertNotEquals, 8 | } from "https://deno.land/std@0.192.0/testing/asserts.ts"; 9 | 10 | Deno.test("Source code translation works", async () => { 11 | const source = "const x = 'https://deno.land/std@0.146.0/testing/asserts.ts'"; // i-deno-outdated 12 | const redirect = await findAndReplace(source); 13 | 14 | assertNotEquals(redirect, source); 15 | }); 16 | 17 | Deno.test("Comment ignore works", async () => { 18 | const source = 19 | // deno-fmt-ignore 20 | `const x = "https://deno.land/std@0.146.0/testing/asserts.ts"; ${"i-deno-outdated" && ""} 21 | const x = 'https://deno.land/std@0.146.0/testing/asserts.ts' // i-deno-outdated ";`; 22 | const redirect = await findAndReplace(source); 23 | 24 | const sourceLines = source.split("\n"); 25 | const lines = redirect.split("\n"); 26 | 27 | // ensure that the escape character bug does not exist 28 | assert(!lines[0].includes("%22")); 29 | 30 | assert( 31 | !lines[0].includes("i-deno-outdated"), 32 | "i-deno-outdated exists in the first line of the source string", 33 | ); 34 | assertNotEquals(lines[0], sourceLines[0]); // the deno-outdated line exists only exists in the code and not the string (as proven above) 35 | assertEquals(lines[1], sourceLines[1]); 36 | 37 | assertNotEquals(redirect, source); 38 | }); 39 | 40 | Deno.test("Slash at the end of a URL isn't removed", async () => { 41 | const source = `https://esm.sh/preact@10.10.6/`; // i-deno-outdated 42 | const result = await findAndReplace(source); 43 | 44 | // https://github.com/LeoDog896/deno-outdated/issues/18 45 | assert( 46 | !result.endsWith("//"), 47 | "Result ends with two slashes '//': " + result, 48 | ); 49 | 50 | assert( 51 | result.endsWith("/"), 52 | "Result doesn't end with '/': " + result, 53 | ); 54 | 55 | assert( 56 | result.startsWith("https"), 57 | "Result doesn't start with 'https': " + result, 58 | ); 59 | }); 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # deno-outdated 2 | 3 | Pins your dependencies to the latest version & updates existing ones. 4 | 5 | ```bash 6 | deno install --allow-read=./ --allow-net --allow-write=./ -f -n=deno-outdated https://deno.land/x/deno_outdated/cli.ts 7 | ``` 8 | 9 | Or, add it to your deno.json's (or deno.jsonc) tasks: 10 | 11 | ```json 12 | "update": "deno run --allow-read=./ --allow-net --allow-write=./ https://deno.land/x/deno_outdated/cli.ts", 13 | ``` 14 | 15 | You can even add a github action: 16 | https://github.com/LeoDog896/deno-outdated/blob/main/.github/workflows/update.yml 17 | 18 | Do note that if you're running an application, remove the run action that 19 | removes deno.lock `rm deno.lock`, as that is only for libraries 20 | 21 | ## Flags 22 | 23 | - `-q, --quiet`: Silence CLI output 24 | - `-d, --debug`: Add extra information to see scanning 25 | - `-i, --ignore [files...]`: Ignore certain files for formatting 26 | - `-c, --check`: Check files for outdated dependencies without updating them 27 | 28 | ## Ignore 29 | 30 | You can ignore updating for a line with `i-deno-outdated`, for example: 31 | 32 | 33 | ```ts 34 | import { assert } from "https://deno.land/std@0.146.0/testing/asserts.ts" // i-deno-outdated 35 | 36 | const source = ` 37 | const x = 'https://deno.land/std@0.146.0/testing/asserts.ts'; ${"i-deno-outdated" && ""} 38 | const x = 'https://deno.land/std@0.146.0/testing/asserts.ts' // i-deno-outdated "; 39 | `; 40 | ``` 41 | 42 | Currently works with: 43 | 44 | - https://deno.land/ 45 | - https://esm.sh/ 46 | - https://cdn.jsdelivr.net 47 | - https://unpkg.com 48 | 49 | (Want to add more? Contribute to `regex.ts`) 50 | 51 | ## What's the difference between this and [UDD](https://github.com/hayd/deno-udd)? 52 | 53 | This tool aims to be similar to deno native tools such as `deno fmt` and 54 | `deno lint`, or aka shellable 55 | 56 | ## Internal layout 57 | 58 | Updating works by finding URLs in a source file, removing their version 59 | specifier, and redirecting it to the latest one. 60 | 61 | This is split into different stacking modules: 62 | 63 | ### Layer 1: 64 | 65 | - Redirect (`redirect.ts`) finds any simple redirects in that URL. 66 | - Removal (`removal.ts`) removes the version part of a URL. This is dependent on 67 | the vendor (deno.land/x, esm.sh). 68 | 69 | ### Layer 2: (`update.ts`) 70 | 71 | This updates a URL to its latest known version, if any. 72 | 73 | ### Layer 3 (`change.ts`) 74 | 75 | This is the API for the CLI app, and it allows you to scan files for outdated 76 | dependencies and update them. 77 | 78 | ### Layer 4 (`cli.ts`) 79 | 80 | This wraps everything around with cliffy for a nice CLI app. 81 | -------------------------------------------------------------------------------- /cli.ts: -------------------------------------------------------------------------------- 1 | import { Command } from "https://deno.land/x/cliffy@v0.25.7/command/mod.ts"; 2 | import { basename, join } from "https://deno.land/std@0.192.0/path/mod.ts"; 3 | import { findAndReplace } from "./change.ts"; 4 | 5 | /** 6 | * Recursively find all files in a directory 7 | * @param path The starting parent path 8 | * @param ignore The files to ignore 9 | */ 10 | export async function* recursiveReaddir( 11 | path = Deno.cwd(), 12 | ignore: string[] = [], 13 | ): AsyncGenerator { 14 | for await (const dirEntry of Deno.readDir(path)) { 15 | if (ignore.includes(dirEntry.name)) continue; 16 | 17 | if (dirEntry.isDirectory) { 18 | yield* recursiveReaddir(join(path, dirEntry.name), ignore); 19 | } else if (dirEntry.isFile) { 20 | yield join(path, dirEntry.name); 21 | } 22 | } 23 | } 24 | 25 | async function update( 26 | quiet = false, 27 | check = false, 28 | ignore: string[] = [], 29 | lineIgnore = "i-deno-outdated", 30 | debug = false, 31 | ) { 32 | let count = 0; 33 | // TODO .gitignore 34 | for await ( 35 | const file of recursiveReaddir(Deno.cwd(), [...ignore, ".git", "deno.lock"]) 36 | ) { 37 | if (ignore.includes(basename(file))) { 38 | if (debug) console.log(`Ignoring ${file}`); 39 | continue; 40 | } 41 | 42 | if (debug) console.log(`Attempting to update ${file}`); 43 | const originalSource = await Deno.readTextFile(file); 44 | const newSource = await findAndReplace(originalSource, lineIgnore); 45 | 46 | if (newSource !== originalSource) { 47 | if (check) { 48 | console.log(`${file} needs updating`); 49 | } else { 50 | await Deno.writeTextFile( 51 | file, 52 | newSource, 53 | ); 54 | } 55 | 56 | count++; 57 | 58 | if (!quiet) console.log(file); 59 | } 60 | } 61 | 62 | return count; 63 | } 64 | 65 | await new Command() 66 | .name("deno-outdated") 67 | .version("0.3.0") 68 | .option("-d, --debug", "Show all scanned files") 69 | .option("-q, --quiet", "Silence any output") 70 | .option( 71 | "-c, --check", 72 | "Check files without updating them", 73 | ) 74 | .option( 75 | "-l --line-ignore [line-ignore:string]", 76 | "The text of the comment to ignore", 77 | { 78 | default: "i-deno-outdated", 79 | }, 80 | ) 81 | .option("-i --ignore [ignore...:string]]", "list of files to ignore", { 82 | separator: " ", 83 | }) 84 | .description( 85 | "Check and update outdated dependencies for various 3rd party vendors", 86 | ) 87 | .action(async ({ quiet, ignore, lineIgnore, debug, check }) => { 88 | const count = await update( 89 | quiet, 90 | check, 91 | Array.isArray(ignore) ? ignore : [], 92 | typeof lineIgnore === "string" ? lineIgnore : "i-deno-outdated", 93 | debug, 94 | ); 95 | if (!quiet) { 96 | console.log( 97 | `${check ? "Checked" : "Updated"} ${count} file${ 98 | count === 1 ? "" : "s" 99 | }`, 100 | ); 101 | } 102 | }) 103 | .parse(Deno.args); 104 | -------------------------------------------------------------------------------- /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, religion, or sexual identity and 10 | orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | - Demonstrating empathy and kindness toward other people 21 | - Being respectful of differing opinions, viewpoints, and experiences 22 | - Giving and gracefully accepting constructive feedback 23 | - Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | - Focusing on what is best not just for us as individuals, but for the overall 26 | community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | - The use of sexualized language or imagery, and sexual attention or advances of 31 | any kind 32 | - Trolling, insulting or derogatory comments, and personal or political attacks 33 | - Public or private harassment 34 | - Publishing others' private information, such as a physical or email address, 35 | without their explicit permission 36 | - Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | LeoDog896@gmail.com. All complaints will be reviewed and investigated promptly 64 | and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series of 86 | actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or permanent 93 | ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within the 113 | community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.0, available at 119 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html. 120 | 121 | Community Impact Guidelines were inspired by 122 | [Mozilla's code of conduct 123 | enforcement ladder](https://github.com/mozilla/diversity). 124 | 125 | [homepage]: https://www.contributor-covenant.org 126 | 127 | For answers to common questions about this code of conduct, see the FAQ at 128 | https://www.contributor-covenant.org/faq. Translations are available at 129 | https://www.contributor-covenant.org/translations. 130 | --------------------------------------------------------------------------------