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

be-based

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

be-based - npm Package Compare versions

Comparing version 0.0.0 to 0.0.1

be-based.js

25

package.json
{
"name": "be-based",
"version": "0.0.0",
"version": "0.0.1",
"description": "",
"main": "index.js",
"main": "be-based.js",
"module": "be-based.js",
"keywords": [
"web components",
"web component",
"custom elements",
"custom element"
],
"dependencies": {
"be-decorated": "0.0.71",
"be-hive": "0.0.20"
},
"devDependencies": {
"xtal-test": "0.0.55",
"@skypack/package-check": "0.2.2",
"@custom-elements-manifest/analyzer": "0.5.7"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"serve": "node node_modules/xtal-test/serve.js",
"package-check": "package-check",
"doc": "custom-elements-manifest analyze"
},

@@ -9,0 +28,0 @@ "repository": {

@@ -1,1 +0,37 @@

# be-based
# be-based
be-based is a package that contains a client-side web component decorator, a trans-render transformer [TODO], and a HTMLRewriter class [TODO].
## client-side decorator
```html
<template be-based='{
"rules": [
{
"selector": "a",
"attr": "href",
"ifNot": "^(http|https)",
"prependVal": "https://www.supremecourt.gov/about/"
}
]
}'>
<a href="biographies.aspx#SOConnor">O'Connor, Sandra Day</a>
</template>
```
transforms the template to:
```html
<template is-based='{
"rules": [
{
"selector": "a",
"attr": "href",
"ifNot": "^(http|https)",
"prependVal": "https://www.supremecourt.gov/about/"
}
]
}'>
<a href="https://www.supremecourt.gov/about/biographies.aspx#SOConnor">O'Connor, Sandra Day</a>
</template>
```
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