svg-tags

WebJar for svg-tags

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

svg-tags
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

jar
Description

Description

svg-tags
WebJar for svg-tags
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/element-io/svg-tags

Download svg-tags

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/svg-tags/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>svg-tags</artifactId>
    <version>1.0.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/svg-tags/
implementation 'org.webjars.npm:svg-tags:1.0.0'
// https://jarcasting.com/artifacts/org.webjars.npm/svg-tags/
implementation ("org.webjars.npm:svg-tags:1.0.0")
'org.webjars.npm:svg-tags:jar:1.0.0'
<dependency org="org.webjars.npm" name="svg-tags" rev="1.0.0">
  <artifact name="svg-tags" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='svg-tags', version='1.0.0')
)
libraryDependencies += "org.webjars.npm" % "svg-tags" % "1.0.0"
[org.webjars.npm/svg-tags "1.0.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

SVG Tags

NPM version Build Status Coverage Dependencies

List of standard SVG tags.

List built from the SVG 1.1 specification.

Installation

$ npm install svg-tags --save

Usage

The module is simply a JSON array, so use as you would a normal JavaScript array.

var tags = require( 'svg-tags' );

console.log( JSON.stringify( tags ) );
/**
* Returns:
*	[ 'a', 'altGlyph', ... ]
*/

console.log( tags.indexOf( 'desc' ) );
// Returns [index]

Examples

To run the example code from the top-level application directory,

$ node ./examples/index.js

Tests

Unit

Unit tests use the Mocha test framework with Chai assertions. To run the tests, execute the following command in the top-level application directory:

$ make test

All new feature development should have corresponding unit tests to validate correct functionality.

Test Coverage

This repository uses Istanbul as its code coverage tool. To generate a test coverage report, execute the following command in the top-level application directory:

$ make test-cov

Istanbul creates a ./reports/coverage directory. To access an HTML version of the report,

$ open reports/coverage/lcov-report/index.html

License

MIT license.


Copyright

Copyright © 2014. Athan Reines.

org.webjars.npm

Element.io

Minimal DOM-like elements and associated utilities.

Versions

Version
1.0.0