# truncate

Truncates a string based on provided length.

Source

# Installation

Global install:

import Vue from "vue"
import { truncate } from "vuetensils/src/filters"

Vue.filter("truncate", truncate)

Local install:

<script>
  import { truncate } from "vuetensils/src/filters"

  export default {
    filters: {
      truncate,
    },
  }
</script>

# Example

Last Updated: 4/21/2020, 7:19:34 PM