html-redirections

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

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i html-redirections

      Weekly Downloads

      2

      Version

      1.1.0

      License

      MIT

      Unpacked Size

      3.47 kB

      Total Files

      4

      Last publish

      Collaborators

      • iamandrewluca