npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

vuemailsignatureconverter

v1.0.5

Published

[![Node version](https://img.shields.io/npm/v/vuemailsignatureconverter)](https://www.npmjs.com/package/vuemailsignatureconverter)

Downloads

9

Readme

Node version

Vue Mail Signature Converter

What is it?

The Vue Mail Signature Converter can be used to create .mailsignature files for Apple Mail signatures. The plugin comes with the <mailSignatureEditable /> Vue component, through which the signature can be filled with custom content.

Global or scoped styles are inserted into the signature as inline CSS. Responsive layouts and web fonts are taken into account.

Setup

npm i vuemailsignatureconverter

main.js

import { createApp } from 'vue'
import App from './App.vue'
import { mailSignatureConverter } from 'vueMailSignatureConverter'

createApp(App)
    .use(mailSignatureConverter) 
    .mount('#app')

App.vue

<script setup>
const $e = ref()
</script>

<template>
    <mailClientWindow>
        <div ref="$e">
            <mailSignatureEditable class="default" placeholder="Your name" /><br />
            <mailSignatureEditable class="default" placeholder="Your title" :list="['Dr.', 'Prof.', 'Prof. Dr.']" /><br />
            <br />
            Phone +49 123 456789-<mailSignatureEditable class="default" placeholder="Your Number" type="number" steps="1" /><br />
            <br />
            ABC Company<br />
            123 Main Street<br />
            Anytown, State<br />
            12345<br />
            United States
        </div>
    </mailClientWindow>
    <mailSignatureConverter :source="$e" />
</template>

Build-in components

<mailSignatureEditable>

This component allows for targeted editing of the signature. For example, your team has the opportunity to add their individual information to your signature.

Props

interface mailSignatureEditableProps {
    /**
     * Specify a placeholder in case no content has been entered.
     */
    placeholder?: String
    /**
     * HTML <input> type attribute
     * Default: text
     */    
    type?: String
    /**
     * Specify a datalist dropdown. 
     * e.g. ['Dr.', 'Prof.', 'Prof. Dr.']
     * Default: false
     */       
    list: Boolean | Array
}

Placeholder via slot

<mailSignatureEditable>Your name</mailSignatureEditable>

<mailSignatureConverter>

With this component, your signature can be converted into a .mailsignature file at the push of a button and downloaded, or inserted as HTML into the clipboard. By default, instructions for implementation are included.

Props

interface mailSignatureConverterProps {
    /**
     * Required. Specify source container
     */
    source: HTMLElement
    /**
     * .mailsignature Filename (without suffix)
     * Default: window.location.host (e.g. example.com)
     */    
    filename?: String
    /**
     * Disable installation instructions
     * Default: window.location.host (e.g. example.com)
     */        
    hideInstructions?: Boolean   
}

<mailClientWindow>

Use this component as a simple mail client visualization