1.0.0 • Published 11 years ago

svg-tags v1.0.0

Weekly downloads
3,015,928
License
-
Repository
github
Last release
11 years ago

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.

stylelint@vue/babel-sugar-v-model@vue/babel-plugin-transform-vue-jsxvuedragdropuploadimages@ant-design-vue/babel-preset-jsxbb-chat@infinitebrahmanuniverse/nolb-svg-opea-bootstraap@everything-registry/sub-chunk-2858map-render-gl-jsxweb-elements-iconsvue-button-test1svg-elsweetalert2-denazificationvue-compmentcauseway-concrete-stylesjesusdemojssvgjsx-to-domjsx-to-htmldfeuk-frontenddfeuk-frontend-manualstylelint-stylusstylelint-selector-custom-tag-patternsummerseatestltehmusimhujantsx-create-elementtingzi-vuepress@anyversion/vue-tsx-transformer@ant-design-vue/babel-plugin-jsx128981semzub@aabelmann/ui-layerzubtesttodayvue-tsx-transformervue-size-trackerverify-img-codevformlmqzerionprokovanmail@gityoog/vue-tsx-transformer@lofcz/sweetalert2-neutral@lordbeanbag/vite-plugin-svg-icons-monorepo@leetcode/stylelint@mathu01/gdpr-consent@namtoonix/editorjs-custom-multiple-selected@fabwcie/ckeditor5-preview@faizanhaider/iconsax@dword-design/babel-plugin-transform-vue-jsx@kdujs/babel-sugar-k-model@kdujs/babel-plugin-jsx@kdujs/babel-plugin-transform-kdu-jsx@quarkd/babel-plugin-transform-vue-jsx@sbaldwin24/stylelint-config@oriduk/ckeditor5-rebuild-oriduk@oriduk/ckeditor5-rebuild-musicanote@retailica/sweetalert2movijsxnuxtpaginationsopea-bootstrappatepangdeuisedanbosoknewdemo1neural_compressor_ext_lab_customizedneural_compressor_ext_lab_customized_2pileuleuyantearainbowprokovanmailshoppyfit-toolhtmllint-custom-tag-styleidyllhot-zone-vuehive-editor-svg-method-drawlitepie-datepicker-gabemangudinlagirajinm2m-chartjs-plugin-crosshair@vue3-oop/babel-plugin-jsx@umd-pkg/babel-plugin-jsx@tomw2w/my-nuxt-layer@styled-system/babel-pluginanakketigaanaklanangteaanakwadonteababel-plugin-jsx-k-modelbabel-plugin-jsx-v-modelbabel-plugin-transform-que-jsxbabel-plugin-transform-strict-vue3-jsxap-vue-captchackeditor5-build-classic-ticketckeditor5-build-classic-v-editdelenitiveritatisdesign-system-trial-milyasbpacssesc-wbgbase-editoreditor.js-custom-multiple-selectedec0lint-cssec0lint-styleec0lint-style-config-postcssef-h5editorjs_forkedember-eslint-parsereslint-plugin-jsxflowable-bpmn-modeler
1.0.0

11 years ago

0.0.0

11 years ago