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

@webref/elements

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@webref/elements - npm Package Compare versions

Comparing version 1.0.2 to 1.0.4

6

index.js
const fs = require('fs').promises;
const path = require('path');
async function listAll() {
async function listAll({folder = __dirname} = {}) {
const all = {};
const files = await fs.readdir(__dirname);
const files = await fs.readdir(folder);
for (const f of files) {
if (f.endsWith('.json') && f !== 'package.json') {
const text = await fs.readFile(path.join(__dirname, f), 'utf8');
const text = await fs.readFile(path.join(folder, f), 'utf8');
all[path.basename(f, '.json')] = JSON.parse(text);

@@ -11,0 +11,0 @@ }

{
"name": "@webref/elements",
"description": "Markup elements of the Web platform and associated Web IDL interfaces",
"version": "1.0.2",
"version": "1.0.4",
"repository": {

@@ -6,0 +6,0 @@ "type": "git",

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