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

rollup-plugin-string

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-string - npm Package Compare versions

Comparing version 2.0.2 to 3.0.0

index.js

0

CHANGELOG.md

@@ -0,0 +0,0 @@ # Changelog

21

package.json
{
"name": "rollup-plugin-string",
"version": "2.0.2",
"version": "3.0.0",
"description": "Converts text files to modules",
"main": "dist/rollup-plugin-string.js",
"jsnext:main": "dist/rollup-plugin-string.mjs",
"main": "index.js",
"files": [
"dist"
"index.js"
],
"dependencies": {
"rollup-pluginutils": "^1.5.0"
"rollup-pluginutils": "^2.4.1"
},
"devDependencies": {
"buble": "^0.10.6",
"mocha": "^2.5.3",
"rollup": "^0.31.0",
"rollup-plugin-buble": "^0.10.0"
"mocha": "^6.0.1",
"prettier": "^1.16.4",
"rollup": "^1.2.3"
},
"scripts": {
"build": "rollup -c",
"pretest": "npm run build",
"test": "mocha test/*.js --compilers js:buble/register",
"prepublish": "npm test"
"test": "mocha test/*.js"
},

@@ -25,0 +20,0 @@ "repository": {

@@ -6,4 +6,4 @@ # rollup-plugin-string [![Build Status](https://travis-ci.org/TrySound/rollup-plugin-string.svg)](https://travis-ci.org/TrySound/rollup-plugin-string)

```js
import tpl from './tpl.html';
console.log( `Template for render: ${tpl}` );
import tpl from "./tpl.html";
console.log(`Template for render: ${tpl}`);
```

@@ -20,16 +20,16 @@

```js
import { rollup } from 'rollup';
import string from 'rollup-plugin-string';
import { rollup } from "rollup";
import { string } from "rollup-plugin-string";
rollup({
entry: 'main.js',
plugins: [
string({
// Required to be specified
include: '**/*.html',
entry: "main.js",
plugins: [
string({
// Required to be specified
include: "**/*.html",
// Undefined by default
exclude: ['**/index.html']
})
]
// Undefined by default
exclude: ["**/index.html"]
})
]
});

@@ -36,0 +36,0 @@ ```

Sorry, the diff of this file is not supported yet

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