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

literaljs

Package Overview
Dependencies
Maintainers
1
Versions
69
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

literaljs - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

readme.md

49

index.js

@@ -30,50 +30,1 @@ var parse = require('./parse');

};
var Main = Literal.Component(
`<p class="corn">
<div>
This is a div!
<span>${iHopeThisWorks}</span>
</div>
</p>`
);
/**/
var iHopeThisWorks = Literal.Component(
`<div>
This should render like React.
<p>Isn't this lovely?</p>
</div>`
);
//
// var itWorks = Literal.Component(
// `<div>
// Oh yeah!
// </div>`
// );
Main
// Literal.Render(Main, 'app');
// var nodeElements = html.toString().match(/(<.+>|\w+\s)/g);
// console.log(nodeElements);
// nodeElements.forEach(function(element, index) {
// if (element.match(/<a-z>/g) && !element.match(/class/g)) {
//
// } else if (element.match(/<a-z>||class/g)) {
//
// }
// if (!e.match(/\//)) {
// console.log(e);
// document.createElement(e);
// }
// });

2

package.json
{
"name": "literaljs",
"version": "1.0.1",
"version": "1.0.2",
"description": "Lightweight components using template literals with a virtual dom and diff system.",

@@ -5,0 +5,0 @@ "main": "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