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

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

ez-string - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

10

docs/index.json

@@ -570,3 +570,3 @@ [

"name": "public/ez-string.js",
"content": "'use strict';\r\n\r\nconst GeneratedParser = require('../../generated/generated-parser');\r\n\r\n/**\r\n * Renders a template by substituting variable placeholders with provided data.\r\n *\r\n * @param {string} template - string with positional or named parameters enclosed in curly braces\r\n * @param {...any} args - either multiple values when using positional parameters,\r\n * or a single objects with names of the fields corresponding to the names used in the template\r\n * @returns {string} - template string with interpolated variables\r\n *\r\n * @example\r\n * const render = require('ez-string');\r\n * let book;\r\n *\r\n * // Format using variable's position\r\n * book = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\r\n * // book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n *\r\n * // Format using variable's name\r\n * // Variable names must use A-Za-z0-9$_\r\n * book = render('One of my favorite books is \"{title}\" by {author}.',\r\n * { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\r\n * // book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n *\r\n * // Curly braces are escaped by using double braces\r\n * let example;\r\n * example = render('{{title}}');\r\n * // example = '{title}'\r\n *\r\n * // One can use array indices\r\n * book = render('\"{arr[0]}\" was first published in {arr[1]}.',\r\n * { arr: ['The Hobbit', 1937]});\r\n * // book = '\"The Hobbit\" was first published in 1937.'\r\n *\r\n * // One can use object properties.\r\n * // Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\r\n * // Properties with other names can be accessed using index notation\r\n * book = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', {\r\n * book: {\r\n * title: 'Marina',\r\n * year : 1999,\r\n * author: {\r\n * 'first name': 'Carlos',\r\n * 'last name': 'Zafon'\r\n * }\r\n * }\r\n * });\r\n * // book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\r\n *\r\n * // If a property name contains a quote character or backslash, they need to be escaped.\r\n * // Quotes are prepended by a backslash\r\n * // Backslashes need to be doubled\r\n * example = render('{data[\"\\\\\\\\\"]}', {\r\n * data: {'\\\\': 'backslash'}\r\n * });\r\n * // example = 'backslash'\r\n * example = render('{data[\"\\\\\"\"]}', {\r\n * data: {'\"': 'quote'}\r\n * });\r\n * // example = 'quote'\r\n */\r\nfunction render(template, ...args) {\r\n /* Parser object is not re-entrant.\r\n Instantiation of generated parser is light and fast. Create a new instance for every call. */\r\n const parser = new GeneratedParser.Parser();\r\n parser.yy.ctx = args;\r\n let result = parser.parse(template);\r\n return result;\r\n}\r\n\r\nmodule.exports = {\r\n render\r\n};\r\n",
"content": "'use strict';\r\n\r\n/** Jison-generated parser */\r\nconst GeneratedParser = require('../../generated/generated-parser');\r\n\r\n/**\r\n * Renders a template by substituting variable placeholders with provided data.\r\n *\r\n * @param {string} template - string with positional or named parameters enclosed in curly braces\r\n * @param {...any} args - either multiple values when using positional parameters,\r\n * or a single objects with names of the fields corresponding to the names used in the template\r\n * @returns {string} - template string with interpolated variables\r\n *\r\n * @example\r\n * const render = require('ez-string').render;\r\n * let book;\r\n *\r\n * // Format using variable's position\r\n * book = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\r\n * // book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n *\r\n * // Format using variable's name\r\n * // Variable names must use A-Za-z0-9$_\r\n * book = render('One of my favorite books is \"{title}\" by {author}.',\r\n * { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\r\n * // book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n *\r\n * // Curly braces are escaped by using double braces\r\n * let example;\r\n * example = render('{{title}}');\r\n * // example = '{title}'\r\n *\r\n * // One can use array indices\r\n * book = render('\"{arr[0]}\" was first published in {arr[1]}.',\r\n * { arr: ['The Hobbit', 1937]});\r\n * // book = '\"The Hobbit\" was first published in 1937.'\r\n *\r\n * // One can use object properties.\r\n * // Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\r\n * // Properties with other names can be accessed using index notation\r\n * book = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', {\r\n * book: {\r\n * title: 'Marina',\r\n * year : 1999,\r\n * author: {\r\n * 'first name': 'Carlos',\r\n * 'last name': 'Zafon'\r\n * }\r\n * }\r\n * });\r\n * // book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\r\n *\r\n * // If a property name contains a quote character or backslash, they need to be escaped.\r\n * // Quotes are prepended by a backslash\r\n * // Backslashes need to be doubled\r\n * example = render('{data[\"\\\\\\\\\"]}', {\r\n * data: {'\\\\': 'backslash'}\r\n * });\r\n * // example = 'backslash'\r\n * example = render('{data[\"\\\\\"\"]}', {\r\n * data: {'\"': 'quote'}\r\n * });\r\n * // example = 'quote'\r\n */\r\nfunction render(template, ...args) {\r\n /* Parser object is not re-entrant.\r\n Instantiation of generated parser is light and fast. Create a new instance for every call. */\r\n const parser = new GeneratedParser.Parser();\r\n parser.yy.ctx = args;\r\n let result = parser.parse(template);\r\n return result;\r\n}\r\n\r\nmodule.exports = {\r\n render\r\n};\r\n",
"static": true,

@@ -593,5 +593,5 @@ "longname": "D:/Personal/Projects/ez-string/src/public/ez-string.js",

"examples": [
"const render = require('ez-string');\nlet book;\n\n// Format using variable's position\nbook = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\n\n// Format using variable's name\n// Variable names must use A-Za-z0-9$_\nbook = render('One of my favorite books is \"{title}\" by {author}.',\n { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\n\n// Curly braces are escaped by using double braces\nlet example;\nexample = render('{{title}}');\n// example = '{title}'\n\n// One can use array indices\nbook = render('\"{arr[0]}\" was first published in {arr[1]}.',\n { arr: ['The Hobbit', 1937]});\n// book = '\"The Hobbit\" was first published in 1937.'\n\n// One can use object properties.\n// Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\n// Properties with other names can be accessed using index notation\nbook = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', {\n book: {\n title: 'Marina',\n year : 1999,\n author: {\n 'first name': 'Carlos',\n 'last name': 'Zafon'\n }\n }\n });\n // book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\n\n// If a property name contains a quote character or backslash, they need to be escaped.\n// Quotes are prepended by a backslash\n// Backslashes need to be doubled\nexample = render('{data[\"\\\\\\\\\"]}', {\n data: {'\\\\': 'backslash'}\n});\n// example = 'backslash'\nexample = render('{data[\"\\\\\"\"]}', {\n data: {'\"': 'quote'}\n});\n// example = 'quote'"
"const render = require('ez-string').render;\nlet book;\n\n// Format using variable's position\nbook = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\n\n// Format using variable's name\n// Variable names must use A-Za-z0-9$_\nbook = render('One of my favorite books is \"{title}\" by {author}.',\n { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\n\n// Curly braces are escaped by using double braces\nlet example;\nexample = render('{{title}}');\n// example = '{title}'\n\n// One can use array indices\nbook = render('\"{arr[0]}\" was first published in {arr[1]}.',\n { arr: ['The Hobbit', 1937]});\n// book = '\"The Hobbit\" was first published in 1937.'\n\n// One can use object properties.\n// Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\n// Properties with other names can be accessed using index notation\nbook = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', {\n book: {\n title: 'Marina',\n year : 1999,\n author: {\n 'first name': 'Carlos',\n 'last name': 'Zafon'\n }\n }\n });\n // book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\n\n// If a property name contains a quote character or backslash, they need to be escaped.\n// Quotes are prepended by a backslash\n// Backslashes need to be doubled\nexample = render('{data[\"\\\\\\\\\"]}', {\n data: {'\\\\': 'backslash'}\n});\n// example = 'backslash'\nexample = render('{data[\"\\\\\"\"]}', {\n data: {'\"': 'quote'}\n});\n// example = 'quote'"
],
"lineNumber": 64,
"lineNumber": 65,
"unknown": [

@@ -636,3 +636,3 @@ {

"kind": "index",
"content": "# ez-string\r\nA string template renderer for JavaScript without memory leaks. It supports referencing variables by position, by name. One can access properties and array elements.\r\n\r\n## Example\r\n\r\n```js\r\nconst render = require('ez-string');\r\nlet book;\r\n\r\n// Format using variable's position\r\nbook = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\r\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n\r\n// Format using variable's name\r\n// Variable names must use A-Za-z0-9$_\r\nbook = render('One of my favorite books is \"{title}\" by {author}.',\r\n { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\r\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n\r\n// Curly braces are escaped by using double braces\r\nlet example;\r\nexample = render('{{title}}');\r\n// example = '{title}'\r\n\r\n// One can use array indices\r\nbook = render('\"{arr[0]}\" was first published in {arr[1]}.',\r\n { arr: ['The Hobbit', 1937]});\r\n// book = '\"The Hobbit\" was first published in 1937.'\r\n\r\n// One can use object properties.\r\n// Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\r\n// Properties with other names can be accessed using index notation\r\nbook = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', { \r\n book: {\r\n title: 'Marina',\r\n year : 1999,\r\n author: {\r\n 'first name': 'Carlos',\r\n 'last name': 'Zafon'\r\n }\r\n }\r\n });\r\n// book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\r\n\r\n// If a property name contains a quote character or backslash, they need to be escaped.\r\n// Quotes are prepended by a backslash\r\n// Backslashes need to be doubled\r\nexample = render('{data[\"\\\\\\\\\"]}', {\r\n data: {'\\\\': 'backslash'}\r\n});\r\n// example = 'backslash'\r\nexample = render('{data[\"\\\\\"\"]}', {\r\n data: {'\"': 'quote'}\r\n});\r\n// example = 'quote'\r\n```\r\n\r\n## Installation\r\n\r\nUsing NodeJS:\r\n```shell\r\n$ npm i --save ez-string\r\n```\r\n\r\n```js\r\nconst render = require('ez-string');\r\nlet book;\r\n\r\n// Format using variable's position\r\nbook = render('One of the best books by {author} is \"{title}\".', {\r\n author: 'Stephen King',\r\n title: '11/22/63'\r\n});\r\n// book = 'One of the best books by Stephen King is \"11/22/63\".'\r\n```\r\n\r\nIn a browser:\r\n```html\r\n<!-- Load library which is UMD packed -->\r\n<script src=\"ez-string.js\"></script>\r\n\r\n<script>\r\n const render = require('ez-string');\r\n let book;\r\n\r\n // Format using variable's position\r\n book = render('One of the best books by {author} is \"{title}\".', {\r\n author: 'Stephen King',\r\n title: '11/22/63'\r\n });\r\n // book = 'One of the best books by Stephen King is \"11/22/63\".'\r\n</script>\r\n```\r\n\r\n## Why ez-string\r\n \r\nThe most important reason is that this library doesn't leak memory.\r\n\r\n Many of the existing template renderers perform a two-step process. They compile a string template into a JavaScript function and then execute it while passing context data. However, most users of such libraries rarely cache the resulting compiled function. Instead they may compile the same template again and again. Due to inticacies of NodeJS memory garbage collection. Such pattern usually results in a memory leak, as described by [Meteor developers.](https://blog.meteor.com/an-interesting-kind-of-javascript-memory-leak-8b47d2e7f156)\r\n\r\nLibrary documentation is [here.](https://kirusi.github.io/ez-string/)\r\n",
"content": "# ez-string\r\n[![Travis build status badge](https://api.travis-ci.org/Kirusi/ez-string.svg?branch=master)](https://travis-ci.org/Kirusi/ez-string)\r\n[![ESDoc coverage badge](https://doc.esdoc.org/github.com/Kirusi/ez-string/badge.svg)](https://doc.esdoc.org/github.com/Kirusi/ez-string/)\r\n\r\nA string template renderer for JavaScript without memory leaks. It supports referencing variables by position, by name. One can access properties and array elements.\r\n\r\n## Example\r\n\r\n```js\r\nconst render = require('ez-string').render;\r\nlet book;\r\n\r\n// Format using variable's position\r\nbook = render('One of my favorite books is \"{0}\" by {1}.', 'The Name of the Wind', 'Patrick Rothfuss');\r\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n\r\n// Format using variable's name\r\n// Variable names must use A-Za-z0-9$_\r\nbook = render('One of my favorite books is \"{title}\" by {author}.',\r\n { title: 'The Name of the Wind', author: 'Patrick Rothfuss'});\r\n// book = 'One of my favorite books is \"The Name of the Wind\" by Patrick Rothfuss.'\r\n\r\n// Curly braces are escaped by using double braces\r\nlet example;\r\nexample = render('{{title}}');\r\n// example = '{title}'\r\n\r\n// One can use array indices\r\nbook = render('\"{arr[0]}\" was first published in {arr[1]}.',\r\n { arr: ['The Hobbit', 1937]});\r\n// book = '\"The Hobbit\" was first published in 1937.'\r\n\r\n// One can use object properties.\r\n// Properties with names consisting of A-Za-z0-9$_ can be accessed using property notation\r\n// Properties with other names can be accessed using index notation\r\nbook = render('\"{book.title}\" was written by {book.author[\"first name\"]} {book.author[\"last name\"]}. It was published in {book.year}.', { \r\n book: {\r\n title: 'Marina',\r\n year : 1999,\r\n author: {\r\n 'first name': 'Carlos',\r\n 'last name': 'Zafon'\r\n }\r\n }\r\n });\r\n// book = '\"Marina\" was written by Carlos Zafon. It was published in 1999.'\r\n\r\n// If a property name contains a quote character or backslash, they need to be escaped.\r\n// Quotes are prepended by a backslash\r\n// Backslashes need to be doubled\r\nexample = render('{data[\"\\\\\\\\\"]}', {\r\n data: {'\\\\': 'backslash'}\r\n});\r\n// example = 'backslash'\r\nexample = render('{data[\"\\\\\"\"]}', {\r\n data: {'\"': 'quote'}\r\n});\r\n// example = 'quote'\r\n```\r\n\r\n## Installation\r\n\r\nUsing NodeJS:\r\n```shell\r\n$ npm i --save ez-string\r\n```\r\n\r\n```js\r\nconst render = require('ez-string').render;\r\nlet book;\r\n\r\n// Format using variable's position\r\nbook = render('One of the best books by {author} is \"{title}\".', {\r\n author: 'Stephen King',\r\n title: '11/22/63'\r\n});\r\n// book = 'One of the best books by Stephen King is \"11/22/63\".'\r\n```\r\n\r\nIn a browser:\r\n```html\r\n<!-- Load library which is UMD packed -->\r\n<script src=\"ez-string.js\"></script>\r\n\r\n<script>\r\n let book;\r\n\r\n // Format using variable's position\r\n book = render('One of the best books by {author} is \"{title}\".', {\r\n author: 'Stephen King',\r\n title: '11/22/63'\r\n });\r\n // book = 'One of the best books by Stephen King is \"11/22/63\".'\r\n</script>\r\n```\r\n\r\n## Why ez-string\r\n \r\nThe most important reason is that this library doesn't leak memory.\r\n\r\n Many of the existing template renderers perform a two-step process. They compile a string template into a JavaScript function and then execute it while passing context data. However, most users of such libraries rarely cache the resulting compiled function. Instead they may compile the same template again and again. Due to inticacies of NodeJS memory garbage collection. Such pattern usually results in a memory leak, as described by [Meteor developers.](https://blog.meteor.com/an-interesting-kind-of-javascript-memory-leak-8b47d2e7f156)\r\n\r\nLibrary documentation is [here.](https://kirusi.github.io/ez-string/)\r\n",
"longname": "D:\\Personal\\Projects\\ez-string\\README.md",

@@ -645,3 +645,3 @@ "name": "./README.md",

"kind": "packageJSON",
"content": "{\r\n \"name\": \"ez-string\",\r\n \"version\": \"1.1.6\",\r\n \"description\": \"A string template renderer for JavaScript without memory leaks.\",\r\n \"main\": \"ez-string.js\",\r\n \"scripts\": {\r\n \"esdoc\": \"esdoc -c ./esdoc.json\",\r\n \"eslint-fix\": \"eslint --config=./config/eslint.config.json --fix src/**/*.js test/**/*.js gulpfile.js\",\r\n \"eslint-watch\": \"esw --config=./config/eslint.config.json -w --fix src/**/*.js test/**/*.js gulpfile.js\",\r\n \"generate\": \"node ./src/private/generator.js\",\r\n \"test-watch\": \"cross-env TEST_MODE=DEV mocha --reporter spec -w --recursive test/specs/*.spec.js\",\r\n \"dev-test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter spec test/specs/*.spec.js\",\r\n \"gen-test\": \"cross-env TEST_MODE=GEN nyc --reporter=html --reporter=text --report-dir=./build/generated-coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"prod-test\": \"nyc --reporter=html --reporter=text --report-dir=./build/postbuild-coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"web-test\": \"mocha --reporter spec test/browser/*.spec.js\",\r\n \"webpack\": \"webpack --config ./config/webpack.config.js\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"git+https://github.com/Kirusi/ez-string.git\"\r\n },\r\n \"keywords\": [\r\n \"string\",\r\n \"template\",\r\n \"render\",\r\n \"interpolation\",\r\n \"variable\",\r\n \"substitution\"\r\n ],\r\n \"author\": \"Kirusi Msafiri\",\r\n \"license\": \"0BSD\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/Kirusi/ez-string/issues\"\r\n },\r\n \"homepage\": \"https://github.com/Kirusi/ez-string#readme\",\r\n \"devDependencies\": {\r\n \"coveralls\": \"^3.0.0\",\r\n \"cross-env\": \"^5.2.0\",\r\n \"esdoc\": \"^1.0.4\",\r\n \"esdoc-node\": \"^1.0.2\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"eslint\": \"^4.18.2\",\r\n \"eslint-watch\": \"^3.1.3\",\r\n \"gulp\": \"^4.0.0\",\r\n \"gulp-util\": \"^3.0.8\",\r\n \"jison\": \"^0.4.18\",\r\n \"mocha\": \"^4.1.0\",\r\n \"mocha-lcov-reporter\": \"^1.3.0\",\r\n \"nyc\": \"^11.4.1\",\r\n \"selenium-webdriver\": \"^4.0.0-alpha.1\",\r\n \"should\": \"^13.1.3\",\r\n \"webpack\": \"^3.10.0\"\r\n }\r\n}\r\n",
"content": "{\r\n \"name\": \"ez-string\",\r\n \"version\": \"1.1.7\",\r\n \"description\": \"A string template renderer for JavaScript without memory leaks.\",\r\n \"main\": \"ez-string.js\",\r\n \"scripts\": {\r\n \"esdoc\": \"esdoc -c ./esdoc.json\",\r\n \"eslint-fix\": \"eslint --config=./config/eslint.config.json --fix src/**/*.js test/**/*.js gulpfile.js\",\r\n \"eslint-watch\": \"esw --config=./config/eslint.config.json -w --fix src/**/*.js test/**/*.js gulpfile.js\",\r\n \"generate\": \"node ./src/private/generator.js\",\r\n \"test-watch\": \"cross-env TEST_MODE=DEV mocha --reporter spec -w --recursive test/specs/*.spec.js\",\r\n \"dev-test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage --check-coverage --lines 100 --functions 100 --branches 100 mocha --reporter spec test/specs/*.spec.js\",\r\n \"gen-test\": \"cross-env TEST_MODE=GEN nyc --reporter=html --reporter=text --report-dir=./build/generated-coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"test\": \"cross-env TEST_MODE=DEV nyc --reporter=html --reporter=text --report-dir=./build/coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"prod-test\": \"nyc --reporter=html --reporter=text --report-dir=./build/postbuild-coverage mocha --reporter spec test/specs/*.spec.js\",\r\n \"web-test\": \"mocha --reporter spec test/browser/*.spec.js\",\r\n \"webpack\": \"webpack --config ./config/webpack.config.js\"\r\n },\r\n \"repository\": {\r\n \"type\": \"git\",\r\n \"url\": \"git+https://github.com/Kirusi/ez-string.git\"\r\n },\r\n \"keywords\": [\r\n \"string\",\r\n \"template\",\r\n \"render\",\r\n \"interpolation\",\r\n \"variable\",\r\n \"substitution\"\r\n ],\r\n \"author\": \"Kirusi Msafiri\",\r\n \"license\": \"0BSD\",\r\n \"bugs\": {\r\n \"url\": \"https://github.com/Kirusi/ez-string/issues\"\r\n },\r\n \"homepage\": \"https://github.com/Kirusi/ez-string#readme\",\r\n \"devDependencies\": {\r\n \"coveralls\": \"^3.0.0\",\r\n \"cross-env\": \"^5.2.0\",\r\n \"esdoc\": \"^1.0.4\",\r\n \"esdoc-node\": \"^1.0.2\",\r\n \"esdoc-standard-plugin\": \"^1.0.0\",\r\n \"eslint\": \"^4.18.2\",\r\n \"eslint-watch\": \"^3.1.3\",\r\n \"gulp\": \"^4.0.0\",\r\n \"gulp-util\": \"^3.0.8\",\r\n \"jison\": \"^0.4.18\",\r\n \"mocha\": \"^4.1.0\",\r\n \"mocha-lcov-reporter\": \"^1.3.0\",\r\n \"nyc\": \"^11.4.1\",\r\n \"selenium-webdriver\": \"^4.0.0-alpha.1\",\r\n \"should\": \"^13.1.3\",\r\n \"webpack\": \"^3.10.0\"\r\n }\r\n}\r\n",
"longname": "D:\\Personal\\Projects\\ez-string\\package.json",

@@ -648,0 +648,0 @@ "name": "package.json",

@@ -90,2 +90,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

/** Jison-generated parser */
const GeneratedParser = __webpack_require__(2);

@@ -102,3 +103,3 @@

* @example
* const render = require('ez-string');
* const render = require('ez-string').render;
* let book;

@@ -105,0 +106,0 @@ *

@@ -0,0 +0,0 @@ /* parser generated by jison 0.4.18 */

{
"name": "ez-string",
"version": "1.1.6",
"version": "1.1.7",
"description": "A string template renderer for JavaScript without memory leaks.",

@@ -5,0 +5,0 @@ "main": "ez-string.js",

@@ -10,3 +10,3 @@ # ez-string

```js
const render = require('ez-string');
const render = require('ez-string').render;
let book;

@@ -70,3 +70,3 @@

```js
const render = require('ez-string');
const render = require('ez-string').render;
let book;

@@ -88,3 +88,2 @@

<script>
const render = require('ez-string');
let book;

@@ -91,0 +90,0 @@

@@ -15,3 +15,3 @@ 'use strict';

* @example
* const render = require('ez-string');
* const render = require('ez-string').render;
* let book;

@@ -18,0 +18,0 @@ *

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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