Socket
Socket
Sign inDemoInstall

karma-renamer-preprocessor

Package Overview
Dependencies
137
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    karma-renamer-preprocessor

A Karma plugin. Rename served files on the fly by renamer.


Version published
Weekly downloads
193
increased by56.91%
Maintainers
1
Install size
19.4 kB
Created
Weekly downloads
 

Readme

Source

karma-renamer-preprocessor

A Karma plugin. Rename served files on the fly.

Installation

npm install karma-renamer-preprocessor --save-dev

Configuration

Simple configuration

You just need to declare what files should be renamed

// karma.conf.js
module.exports = function(config) {
  config.set({
    preprocessors: {
      '**/*.js': ['renamer']
    },
    renamerPreprocessor: {
      // transforming the filenames
      transformPath: function(path) {
        return path.replace(/\.js$/, '.sufix.js');
      }
    }
  });
};

For more information on Karma see the homepage.

Keywords

FAQs

Last updated on 08 Dec 2014

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc