Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metalsmith-renamer

Package Overview
Dependencies
Maintainers
1
Versions
228
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metalsmith-renamer - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

7

lib/index.js
'use strict';
var minimatch = require('minimatch');
var minimatch = require('minimatch'),
path = require('path');

@@ -16,5 +17,3 @@ module.exports = plugin;

files[file].path.name = options[opt].rename;
files[file].path.base = options[opt].rename;
var renamedEntry = files[file].path.dir + "/" + options[opt].rename;
var renamedEntry = path.dirname(file) + "/" + options[opt].rename;
files[renamedEntry] = files[file];

@@ -21,0 +20,0 @@ delete files[file];

{
"name": "metalsmith-renamer",
"version": "0.2.1",
"version": "0.2.2",
"description": "Plugin to take a pattern and rename each matched file",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc