New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

domage

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

domage

DOM Element Curd Operation!

  • 1.1.4
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

Domage: DOM Manipulation Library

Domage is a lightweight JavaScript library for DOM manipulation, designed to simplify common tasks such as creating, accessing, and manipulating elements on the web page.

Features

  • Simple and Intuitive API: Domage provides a straightforward API for performing common DOM operations, making it easy to work with elements in the document.

  • Element Creation and Access: Easily create new elements or access existing elements by their IDs or selectors.

  • Visibility Check: Check whether an element is currently visible within the viewport.

  • Copying and Cloning Elements: Copy or clone elements and append them to other elements in the document.

  • Adding and Removing Elements: Add new elements to the document or remove existing elements.

  • Positional Insertion: Insert elements at specific positions within parent elements.

Installation

You can install Domage via npm:

npm install domage

Example

import * as Domage from "domage";

// Check if Domage is initialized
Domage.isDomageInit();

// Create a new element
const newElement = Domage.createElement("div");

// Get an element by ID
const existingElement = Domage.getElementById("myElementId");

Contribution

Contributions are welcome! If you encounter any bugs or have suggestions for new features, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License.

Keywords

FAQs

Package last updated on 09 Feb 2024

Did you know?

Socket

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.

Install

Related posts

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