npm.io
1.1.1 • Published 5 years ago

crelns

Licence
ISC
Version
1.1.1
Deps
1
Size
3 kB
Vulns
0
Weekly
0
Stars
2

crelns

crel for creating namespaced elements, like SVG.

usage:

Same as crel, but with the namespace as the first argument:

crelns('http://www.w3.org/2000/svg', 'g', {'class':'thing'});

You can easily make an SVG specific version like so:

var crsvg = require('crelns').bind(null, 'http://www.w3.org/2000/svg');