Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
124 changes: 115 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,115 @@
NPM Clone Nifty Penguin Magic npm Enterprise Products Solutions Resources Docs Support Search Join Log In Build amazing
things Essential JavaScript development tools that help you go to market faster and build powerful applications using
modern open source code. See plans Join for free Bring the best of open source to your company npm is the tool used by
over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it.
Create an Org and get more out of the tools your team already knows and loves. Zero configuration Create an org, add
your team, and start collaborating. Nothing to configure, set up, or manage. Team management Control who has access to
what modules within your team namespace using straightforward team management capabilities. Familiar features npm Orgs
has 100% parity with all the public npm registry features your developers already use. npm audit Enjoy the security
auditing features built into the npm client, a zero-friction way to make open source software safer. Create an Org
<!DOCTYPE html>
<html>

<head>
<meta charset="UTF-8"/>
<title>npm Clone</title>
<link rel="stylesheet" href="./style.css" />
</head>

<body>
<header>
<div class="top-header">
<div class="brand">
<img class="black-heart" src="images/black-heart.png" alt="black heart" />
<span class="brand-name"> Nifty Penguin Magic </span>
</div>
<nav>
<ul>
<li><a href="#"> npm Enterprise </a></li>
<li><a href="#"> Products </a></li>
<li><a href="#"> Solutions </a></li>
<li><a href="#"> Resources </a></li>
<li><a href="#"> Docs </a></li>
<li><a href="#"> Support </a></li>
</ul>
</nav>
</div>
<div class="search-bar">
<img class="logo" src="images/npm-logo.png" alt="logo" />
<form action="/some-url" method="post">
<img class="magnifying-glass" src="images/magnifying-glass.png" alt="magnifying-glass" />
<input type="text" id="search" placeholder="Search packages">
<button id="button-search">Search </button>
</form>
<a class="btn-join" href="#">Join</a>
<a class="btn-login" href="#">Log in</a>
</div>
</header>

<!--section1-->
<section id="section1">
<h1 id="header-section1">Build amazing things</h1>
<article id="article-section1">
<p>Essential JavaScript development tools that help you go to market faster and build powerful applications using modern open source code.</p>
</article>
<div id="section1-buttons">
<a href="#" id="button-see-plans">See plans</a>
<a href="#" id="button-join-free">Join for free</a>
</div>
</section>


<!--section2-->
<section id="section2">
<img id="imagem-section2" src="images/triangle-hexagon.svg" alt="triangle hexagon"/>
<article id="article-section2">
<h2 id="header-section2">Bring the best of open source to your company</h2>
<p>npm is the tool used by over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it. Create an Org and get more out of the tools your team already knows and loves.</p>
</article>
</section>


<!--section3-->
<section id="section3">
<!--area1-->
<div class="section3-area">
<img class="imagem-section3-area" src="images/zero-configuration.svg" alt="zero configuration"/>
<h3 class="header-Section3">Zero configuration</h3>
<p class="article-section3">Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage. </p>
</div>

<!--area2-->
<div class="section3-area">
<img class="imagem-section3-area" src="images/team-management.svg" alt="team management"/>
<h3 class="header-Section3">Team management</h3>
<p class="article-section3">Control who has access to what modules within your team namespace using straightforward team management capabilities. </p>
</div>

<!--area3-->
<div class="section3-area">
<img class="imagem-section3-area" src="images/familiar-features.svg" alt="familiar features"/>
<h3 class="header-Section3">Familiar features</h3>
<p class="article-section3">npm Orgs has 100% parity with all the public npm registry features your developers already use. </p>
</div>

<!--area4-->
<div class="section3-area">
<img class="imagem-section3-area" src="images/npm-audit.svg" alt="audit"/>
<h3 class="header-Section3">npm audit</h3>
<p class="article-section3">Enjoy the security auditing features built into the npm client, a zero-friction way to make open source software safer. </p>
</div>
<a href="#" id="button-create-org">Create an Org</a>
</section>


<!-- NPM Clone Nifty Penguin Magic npm Enterprise Products Solutions Resources Docs Support Search Join Log In Build amazing
things Essential JavaScript development tools that help you go to market faster and build powerful applications using
modern open source code. See plans Join for free Bring the best of open source to your company npm is the tool used by
over 11,000,000 JavaScript developers around the world. Your developers already use it. Your company depends on it.
Create an Org and get more out of the tools your team already knows and loves.

Zero configuration Create an org, add your team, and start collaborating. Nothing to configure, set up, or manage.

Team management
Control who has access to
what modules within your team namespace using straightforward team management capabilities.

Familiar features
npm Orgs has 100% parity with all the public npm registry features your developers already use.

npm audit Enjoy the security
auditing features built into the npm client, a zero-friction way to make open source software safer. Create an Org -->

</body>
</html>
39 changes: 39 additions & 0 deletions listSelectors.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
const fs = require("fs");

// --- CONFIG ---
const htmlFile = "index.html";

// --- SCRIPT ---
const html = fs.readFileSync(htmlFile, "utf8");

// Extract classes
const classRegex = /class\s*=\s*["']([^"']+)["']/gi;
let classes = [];
let match;
while ((match = classRegex.exec(html)) !== null) {
classes.push(...match[1].split(/\s+/));
}

// Extract ids
const idRegex = /id\s*=\s*["']([^"']+)["']/gi;
let ids = [];
while ((match = idRegex.exec(html)) !== null) {
ids.push(match[1]);
}

// Extract element tags
const tagRegex = /<([a-zA-Z0-9-]+)/g;
let tags = [];
while ((match = tagRegex.exec(html)) !== null) {
tags.push(match[1]);
}

// Deduplicate
classes = [...new Set(classes)].map(c => "." + c);
ids = [...new Set(ids)].map(i => "#" + i);
tags = [...new Set(tags)];

// Output
console.log("Classes:", classes);
console.log("IDs:", ids);
console.log("Tags:", tags);
Loading