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

gulp-mv2bass

v0.2.0

Published

Insert aliases for combination of Basscss classes into html files

Downloads

22

Readme

#gulp-mv2bass

###A template aliasing plugin for working with basscss(and on top of it)

As web designer and developers, we prefer to use semantic names to refer to styles for specific components of our pages or applications. As smart CSS authors we like to have low specificity selectors, and use classes that have a focused purpose. Sometimes these two are at odds. How can we find a compromise? With template aliases.

Write your templates with @-prefixed class names, and map them to compositions of basscss style classes. The plugin will transform them inline and output them wherever you like with the power of gulp.

##Installing

Just install through npm install --save gulp-mv2bass, I recommend using the --save option so it's listed as a dependency in your package.json.

##Example

See the code in the example directory, or below:

<html>
  <head></head>
  <body class="@body">
    <h1>This is a header</h1>
    <h2 class="@byline">This is some text acting as a byline</h2>
  </body>
</html>

Now, just set up your gulp file to require('gulp-mv2bass'); and then set up your task. All the call to the plugin requires is the rules object - a simple JSON object of string key-value pairs. The key is the alias name, the value is the actual space separated list of class names to apply to the element. Like the following:

{
  "body": "mt5",
  "byline": "blue mx2 center"
}

And then pipe it through:

gulp.task('mv2bass', function() {
  gulp.src('./src/**/*.html')
  .pipe(mv2bass(rules))
  .pipe(gulp.dest('dist'));
});

That will, as you would expect, output the following file in the dist/ directory:

<html>
  <head></head>
  <body class="mt5">
    <h1>This is a header</h1>
    <h2 class="blue mx2 center">This is some text acting as a byline</h2>
  </body>
</html>

##Contributing

Obviously, this is still a work in progress. Feel free to file an issue for bugs or submit a PR if you have a feature request.