faithyang / Sword

made SVG super easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sword

made SVG super easy.

We have a example on the website.

Install

the file is here: sword.js or sword.min.js

You can also install it via npm:

npm install alloysword

Sword can be used in the CommonJS/AMD module definition environment, but also directly through the script tag reference in your page ,such as:

<script src="sword.js"></script>

you can get the Sword module by synchronizing require in the AMD module definition environment:

define(function (require) {
    var Sword = require('sword');
});

or asynchronous require:

require([ 'sword' ], function (Sword) {
});

or require in the CommonJS module definition environment:

var Sword = require('sword');

Many thanks to

License

This content is released under the MIT License.

About

made SVG super easy


Languages

Language:JavaScript 63.2%Language:HTML 25.1%Language:CSS 11.7%