Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 544 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 544 Bytes

html-redirections

Generate HTML redirections files from a JSON with redirects. See blog post

npx html-redirections example-array.json dist

A single redirect in JSON file has this type:

type Redirect = {
    from: string
    to: string
    delay?: number
    meta?: [
        {
            name: string
            content: string
        }
    ]
}