
Security News
Feross on Risky Business Weekly Podcast: npm’s Ongoing Supply Chain Attacks
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
@netflix/x-element
Advanced tools
x-element
_________
/ /__ __\ \
/ / \ \ / \ \
\ \ /_\_\ / /
\_\_____/_/
A dead simple basis for custom elements. It provides the following functionality:
.property
to [attribute]
reflection (opt-in)[attribute]
to .property
synchronization (one-directional, on connected)See SPEC.md for all the deets.
Save a local copy to your project:
curl https://raw.githubusercontent.com/Netflix/x-element/main/x-element.js > x-element.js
curl https://raw.githubusercontent.com/Netflix/x-element/main/x-parser.js > x-parser.js
curl https://raw.githubusercontent.com/Netflix/x-element/main/x-template.js > x-template.js
Then import it:
import XElement from '/path/to/x-element.js';
...or load it directly from the web:
import XElement from 'https://deno.land/x/element/x-element.js';
...or use an importmap:
<script type="importmap">
{
"imports": {
"@netflix/x-element": "https://deno.land/x/element/x-element.js"
}
}
</script>
Then import it using a bare module specifier...
import XElement from '@netflix/x-element';
...or use a package manager:
npm install @netflix/x-element
Then import it using a bare module specifier...
import XElement from '@netflix/x-element';
x-element.js
npm install && npm start
Then...
FAQs
A dead simple basis for custom elements.
We found that @netflix/x-element demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.