2.2.0 • Published 1 year ago

@mcpronovost/qpfilters v2.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

qp-filters · npm version npm license

An easy-to-use collection of filters, originally created for use in a roleplaying project build with Vue.js 3.

Install

  $ npm install @mcpronovost/qpfilters --save

Available Filters

Usage

Direct include (Vue.js 3)

<script setup>
  import { qpdate } from "@mcpronovost/qpfilters";
  // ...
</script>

<template>
  <span v-text="qpdate(props.topic.created_at)"></span>
</template>

Global include (Vue.js 3)

    import { createApp } from "vue";
    import qpfilters from "@mcpronovost/qpfilters";

    const app = createApp(App);

    app.config.globalProperties.$f = qpfilters;
    <script setup>
        // ...
    </script>

    <template>
        <span v-text="$f.qpdate(props.topic.created_at)"></span>
    </template>

Examples

qpabbr

qpabbr("Pachu'a Wapi Qatlaalawsiq")

PWQ

qpcode

qpcode("This is a [g]bold text[/g] and \n this is an [i]italic text[/i].")

This is a <span style="font-weight:bold;">bold text</span> and <br /> this is an <span style="font-style:italic;">italic text</span>.

qpdate

qpdate("2022-10-31T13:50:14.836475-04:00")

31 octobre 2022 à 13:50

qprhex

qprhex()

#89a411

qpslug

qpslug("Au royaume empoisonné feat. Seðem")

au-royaume-empoisonne-feat-sedem

qpunit

qpunit(4928)

4.93k


History

License

This project is licensed under the MIT License - see the LICENSE file for details.

2.2.0

1 year ago

2.1.1

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

1.2.2

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago