
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
atomic-core
Advanced tools
OOP Javascript Library for Building Components Under the Atomic Design System for The Atomic Project
OOP Javascript Library for Building Components Under the Atomic Design System for The Atomic Project.
This library works under the concept of atomic design, so their only purpose is to give us a way to manage the functional part in this concept, for making components.
If you didn't know about The Atomic Project at all, I recommend you to first take a look at "Parts of an Atomic Component".
npm install atomic-core --save
Into a new file, we're going to create a Button class that extends from Atom.
//- button.js
'use strict';
import Atom from 'atomic-core';
/**
* Button Component
*
* @author Luis Sardon
*
* @type atom
*
*/
class Button extends Atom {
constructor(name) {
super(name);
}
}
extends default Button;
For this purpose the only way to instantiate an Atom is within a Molecule or Organism, so into a new file, we're going to create a Menu class that extends from Molecule to accomplish it.
//- menu.js
'use strict';
import Molecule from 'atomic-core';
import Button from 'button.js';
/**
* Menu Component
*
* @author Luis Sardon
*
* @type molecule
*
*/
class Menu extends Molecule {
constructor(name) {
super(name);
this.myButton = new Button('myButton');
// where 'myButton' is the data-name attribute value of the component
// from the html view.
}
}
extends default Menu;
... currently in development...
FAQs
OOP Javascript Library for Building Components Under the Atomic Design System for The Atomic Project
The npm package atomic-core receives a total of 0 weekly downloads. As such, atomic-core popularity was classified as not popular.
We found that atomic-core demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.