New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

svg-attribute-namespace

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

svg-attribute-namespace

get namespace of svg attribute

latest
Source
npmnpm
Version
2.1.0
Version published
Maintainers
1
Created
Source

svg-attribute-namespace

get namespace of svg attribute

code copied from (virtual-hyperscript/svg-attribute-namespace](https://raw.githubusercontent.com/Matt-Esch/virtual-dom/master/virtual-hyperscript/svg-attribute-namespace.js), .

install

with npm, run

npm install --save svg-attribute-namespace

usage

var svgAttributeNamespace = require('svg-attribute-namespace')

svgAttributeNamespace(attributeName) -> namespace

example

var svgAttributeNS = require('svg-attribute-namespace')

function setAttribute (node, name, value) {
  var namespace = svgAttributeNs(name)
  node.setAttributeNS(namespace, name, value)
}

Keywords

svg

FAQs

Package last updated on 20 Dec 2015

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