New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

dot-require

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dot-require

Node.js extension installer for doT templates

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

dot-require

NPM Version NPM Downloads

Node.js extension installer for doT templates

##Usage

require('dot-require').install();

Or with options:

require('dot-require').install({
    extension: '.dot',
    defines: {
        some_dot_compile_define: true
    },
    additionalTransform: function(src) {
        //do some transform
        return src;
    },
    templateSettings: {
        strip: false
    }
});

templateSettings defaults to doT.templateSettings, with partial defaults supported. For more information on templateSettings refere to the doT documentation.

extension defaults to .dot

And to uninstall:

require('dot-require').uninstall();

##Changelog

#####1.0.1

  • Accidentally a word
  • Removed unnecessary testing code

#####1.0.0

  • Initial release

Keywords

dot

FAQs

Package last updated on 02 Jan 2015

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