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

vuejsfy

v1.1.0

Published

Compiles .vue file to proper .js and .css file vue components.

Readme

VueJSfy

Simple compiler of .vue file components into simple classic .js vue components. The styles are extracted into separated .css files.

The module can be used as an application and as a module.

Installation

npm install vuejsfy

Usage as an application

vuejsfy '<vuefile>' [<flags>]

Base

  • vuefile - pattern or strict path to .vue file components. Example: 'path/**/dir/*.vue' or 'path/to/dir/MyComponent.vue'

Flags

  • --htmlformat - Transform ComponentName style of the filename and the component name to component-name. Without this flags the style will be not applied. By default it is false.

  • --dest <dir> - Destination directory of the compiled js and css files. By default there are created in the same directory where .vue file is.

  • --destJs <dir> - Destination directory of the compiled js file. By default it equals --dest flag value.

  • --destCss <dir> - Destination directory of the compiled css file. By default it equals --dest flag value.

Example

<!-- HelloVueJsfy.vue -->

<template>
    <div>
        <p class="hello">Hello, '{{ who }}'</p>
    </div>
</template>

<script>
export default {
    data: function() {
        return {
            who: 'VueJSfy'
        }
    }
}
</script>

<style>
.hello {
    font-weight: bold;
}
</style>

After vuejsfy HelloVueJsfy.vue in the same directory where the .vue file is will be created HelloVuejsfy.vue.js and HelloVuejsfy.vue.css files:

// HelloVueJsfy.vue.js

Vue.component('HelloVueJsfy', {
    template: '<div> <p class="hello">Hello, \'{{ who }}\'</p> </div>',
    data: function() {
        return {
            who: 'VueJSfy'
        }
    }
});
/* HelloVueJsfy.vue.css */

.hello {
    font-weight: bold;
}

CSS preprocessors

If the <style> tag has a lang attribute with some stylesheet preprocessor language then a style file will be created with corresponding extension.

<!-- Example -->
<style lang="scss"></style> <!-- => component.vue.scss -->

Default lang is css.

Usage as a module

Basically the usage is the same as the usage as an application but module is required and all of the flags get in as options.

Example

var vuejsfy = require('vuejsfy');

// without options
vuejsfy('components/my-component.vue');

// with options
vuejsfy('components/ExampleWithOptions.vue', {
    htmlformat: true,
    dest: 'scripts/components'
});

Changelog

v1.1.0

  • Add CSS preprocessor support

v1.0.1

  • Some fixes