Socket
Book a DemoInstallSign in
Socket

rough-name

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rough-name

An utility to get a rough name of html element

latest
npmnpm
Version
1.0.0
Version published
Weekly downloads
37
-86.04%
Maintainers
1
Weekly downloads
 
Created
Source

rough-name

DESCRIPTION

An utility to get a rough name of html element.

The name is configured by its tagName, id and className as possible. This is available for logging or debugging, but not for identify the element in a document.

PREPARATION

<script src="rough-name.js"></script>
<script>
    function main() {
        console.log(RoughName.get(document.getElementById());
    }
</script>

If the require is available,

var RoughName = require('rough-name');

console.log(roughName.get(document.getElementById());

APIs

RoughName.get(element)

SYNTAX

roughName.get(<element>)

PARAMETER

  • element - HTML element.

RETURNS

The rough name of the element.

LICENSE

This software is released under the MIT License, see LICENSE

Keywords

dom

FAQs

Package last updated on 01 May 2017

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