nuxt-trailingslash-module

    1.2.0 • Public • Published

    nuxt-trailingslash-module

    npm (scoped with tag) npm js-standard-style

    A NuxtJS module that makes a 301 redirection to a non trailing slash URL

    Table of Contents

    Requirements

    • npm or yarn
    • NuxtJS
    • NodeJS

    Install

    $ npm install --save nuxt-trailingslash-module
    // or
    $ yarn add nuxt-trailingslash-module

    Getting Started

    Add nuxt-trailingslash-module to modules section of nuxt.config.js.

    {
      modules: [
        // Simple usage
        'nuxt-trailingslash-module',
    
        // With options
        ['nuxt-trailingslash-module', {
          /* module options */
          methods: [
            'GET',
            'HEAD',
          ],
        }],
     ]
    }

    or even

    {
      modules: [
        'nuxt-trailingslash-module',
      ],
      trailingslash: {
        methods: [
          'GET',
          'HEAD',
        ],
      },
    }

    License

    MIT License

    Keywords

    none

    Install

    npm i nuxt-trailingslash-module

    DownloadsWeekly Downloads

    925

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    4.82 kB

    Total Files

    5

    Last publish

    Collaborators

    • williamdasilva