@allindevelopers/html-redirections

1.1.2 • Public • Published

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
        }
    ]
}

Package Sidebar

Install

npm i @allindevelopers/html-redirections

Weekly Downloads

5

Version

1.1.2

License

MIT

Unpacked Size

3.51 kB

Total Files

4

Last publish

Collaborators

  • directive4837