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

enb-tech-wrap

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

enb-tech-wrap

ENB plugin to wrap a file into arbitrary content

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by600%
Maintainers
1
Weekly downloads
 
Created
Source

enb-tech-wrap

ENB plugin to wrap a file into arbitrary content.

This enb tech gathers source files by filesTarget mask, then wraps them with before/after/wrap. Finally, it concats them into one target file.

Installation

npm i -S enb-tech-wrap

Usage

[require('enb-tech-wrap/techs/wrap'), {
    filesTarget: '?.js', // source
    target: '?.wrapped.js',
    before: '/* before */',
    after: '/* after */',
    beforeAll: '/* before all */',
    afterAll: '/* after all */',
    wrap: function(file, content) {
        return [
            '// The code was taken from ' + file,
            content
        ].join('\n');
    }
}]

License

© 2017 YANDEX LLC. The Source Code is subject to the terms of the Mozilla Public License 2.0.

FAQs

Package last updated on 06 Feb 2017

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc