crelns

1.1.1 • Public • Published

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');

Readme

Keywords

none

Package Sidebar

Install

npm i crelns

Weekly Downloads

3

Version

1.1.1

License

ISC

Unpacked Size

3.14 kB

Total Files

5

Last publish

Collaborators

  • korynunn