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

grunt-includes

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-includes - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

2

package.json
{
"name": "grunt-includes",
"description": "Include other files within a file.",
"version": "0.3.4",
"version": "0.3.5",
"author": "vanetix <matmcfarland@gmail.com>",

@@ -6,0 +6,0 @@ "main": "Gruntfile.js",

@@ -49,2 +49,14 @@ # grunt-includes [![Build Status](https://travis-ci.org/vanetix/grunt-includes.png?branch=master)](https://travis-ci.org/vanetix/grunt-includes)

#### filenamePrefix
Type: `String`
Default: ``
Prepend the defined string to each included filename before reading them. Thus making possible to include "include_file.ext" by using directly "file.ext".
#### filenameSuffix
Type: `String`
Default: ``
Append the defined string to each included filename before reading them. Thus making possible to include "file.ext" by using directly "file".
#### includeRegexp

@@ -143,2 +155,3 @@ Type: `RegExp`

## Release History
- 0.3.5 - Add options for filename prefix and suffix.
- 0.3.4 - Add explicit include path option.

@@ -145,0 +158,0 @@ - 0.3.2 - Add silent flag to silence save messages.

@@ -47,3 +47,5 @@ /*

includeRegexp: defaultRegexp,
includePath: ''
includePath: '',
filenamePrefix: '',
filenameSuffix: ''
});

@@ -205,2 +207,3 @@

fileLocation = opts.filenamePrefix + fileLocation + opts.filenameSuffix;
next = path.join((opts.includePath || path.dirname(p)), fileLocation);

@@ -207,0 +210,0 @@ line = recurse(next, opts, included, indents + indent);

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