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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    3
  • 1.1.0
    2
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i crelns

Weekly Downloads

4

Version

1.1.1

License

ISC

Unpacked Size

3.14 kB

Total Files

5

Last publish

Collaborators

  • korynunn