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

browserify-ng-html2js

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-ng-html2js - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

16

CHANGELOG.md
# Changelog
## Version 0.3.0
## 0.3.2
* The angular modules exported as a commonJS module
* Support for Windows
## 0.3.1
* Simpler `module.exports` logic
## 0.3.0
* The angular module is exported as a commonJS module
* CLI Support
## Version 0.2.0
## 0.2.0
* Extension can be specified
## Version 0.1.0
## 0.1.0
* Transforms html templates into angular template modules
var fs = require('fs'),
path = require('path'),
through = require('through'),

@@ -23,2 +24,4 @@ ngHtml2Js = require('ng-html2js');

var fileMatching = new RegExp("^.*\\" + path.sep + "(.*)$");
return function (file) {

@@ -34,3 +37,3 @@ if (!isExtension(file, opts.extension)) return through();

try {
fileName = file.match(/^.*\/(.*)$/)[1];
fileName = file.match(fileMatching)[1];
content = fs.readFileSync(file, 'utf-8');

@@ -37,0 +40,0 @@ src = ngHtml2Js(fileName, content, opts.module, 'ngModule') + '\nmodule.exports = ngModule;';

{
"name": "browserify-ng-html2js",
"version": "0.3.1",
"version": "0.3.2",
"description": "Browserify transform to compile angular templates into angular modules",

@@ -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