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 🙏

© 2026 – Pkg Stats / Ryan Hefner

@derkatzelp/vuetemplateorganizer

v1.2.2

Published

VueTemplateOrganizer is a tool that allows you to configure the sorting of Template blocks in Vue Single File Components (SFCs).

Readme

VueTemplateOrganizer

VueTemplateOrganizer is a tool that allows you to configure the sorting of template blocks in Vue Single File Components (SFCs).

Features

  • Configurable Sorting: Customize the sorting of template blocks to fit your specific needs.
  • Support for Vue SFCs: Use VueTemplateOrganizer with traditional Vue Single File Components.

Not supported yet

  • Global install: There is a known issue with path regarding global installation

Getting Started

Follow these steps to get started with VueTemplateOrganizer in your project.

Installation

npm install @derkatzelp/vuetemplateorganizer --save-dev

Usage

Standard usage (uses cwd + vueFolderPath from config)

npx tmp-organizer

Mit einem benutzerdefinierten Projekt-Root-Pfad (überschreibt vueFolderPath aus der config)

npx tmp-organizer --root /path/to/your/project

Ohne Installation: Bash-Variable

npx -p @derkatzelp/vuetemplateorganizer tmp-organizer --root "${PWD}"

Ohne Installation: pwd Command Substitution

npx -p @derkatzelp/vuetemplateorganizer tmp-organizer --root "$(pwd)"

Ohne Installation: Relativer Pfad

npx -p @derkatzelp/vuetemplateorganizer tmp-organizer --root .

Configuration

You can customize the sorting behavior by adjusting the configuration in config.tmporg.json and sorting.tmporg.json. VueTemplateOrganizer will sort all properties by this given order.

Config

// config.tmporg.json
{
  "showLogFiles": true,
  "showLogFolders": false,
  "sortVueFiles": true,
  "vueFolderPath": "./src/"
}

Sorting

// sorting.tmporg.json
[
  "v-if",
  "v-else-if",
  "v-else",
  "v-show",
  "v-for",
  "v-model",
  "v-bind",
  "v-on",
  "v-html",
  "v-text",
  "v-pre",
  "v-once",
  "v-cloak",
  "id",
  ":id",
  "class",
  "style",
  "type",
  "name",
  "value",
  "href",
  "src",
  "alt",
  "title",
  "placeholder",
  "autocomplete",
  "required",
  "disabled",
  "readonly",
  "checked",
  "selected",
  "multiple",
  "pattern",
  "min",
  "max",
  "step",
  "rows",
  "cols",
  "for",
  "action",
  "method",
  "target",
  "rel",
  "role",
  "aria-*",
  "data-*",
  ":*",
  ":is",
  ":class",
  ":customProp",
  "@*",
  "@click",
  "@input",
  "@change",
  "@submit",
  "slot",
  "slot-scope",
  "ref",
  "key",
  "transition",
  "transition-group",
  "is",
  "inline-template",
  "custom-*"
]

Options

| Key | Values | Default | Description | | ---------------- | ------- | -------- | --------------------------------------------------------- | | showLogFiles | Boolean | true | Enables or disables log report of touched Files | | showLogFolders | Boolean | true | Enables or disables log report of touched Folders | | sortVueFiles | Boolean | true | Enables or disables sorting of Vue SFC Files | | vueFolderPath | String | ./src/ | Specifies the path to Vue SFC Files (subfolders included) |

CLI Arguments

| Argument | Type | Description | | --------------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------------------ | | --root <path> | String | Overrides the project root path. If provided, vueFolderPath from the config will not be applied. Accepts both absolute and relative paths. |

Examples

Before using VueTemplateOrganizer

<template>
  <h1>Test Vue File for Vue Template Organizer</h1>
  <CustomComp class="class1" @click="testfnc" :id="comp1Id" />
  <CustomComp2 @click="testfnc" />
  <p class="par">Just a simple Test</p>
  <label for="txtinput">Your input here</label>
  <input type="text" class="input-c" id="txtinput" ref="myRef" />
</template>

After using VueTemplateOrganizer

<template>
  <h1>Test Vue File for Vue Template Organizer</h1>
  <CustomComp :id="comp1Id" class="class1" @click="testfnc"></CustomComp>
  <CustomComp2 @click="testfnc"></CustomComp2>
  <p class="par">Just a simple Test</p>
  <label for="txtinput">Your input here</label>
  <input id="txtinput" class="input-c" type="text" ref="myRef" />
</template>

Dependencies

VueTemplateOrganizer relies on the following external libraries:

Contributing

If you'd like to contribute to VueTemplateOrganizer, please contact me.

License

This project is licensed under the MIT License.

Acknowledgments

Special thanks to:

  • The maintainers of dom-serializer and htmlparser2 for providing robust parsing tools
  • The Vue.js community for inspiration and support