├── .editorconfig
├── .eslintrc
├── .gitignore
├── .npmignore
├── .travis.yml
├── CHANGELOG.md
├── LICENSE
├── README.md
├── babel.config.js
├── build
├── rollup-min.conf.js
└── rollup.conf.js
├── package-lock.json
├── package.json
└── src
└── index.js
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 4
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.{json,yml}]
12 | indent_size = 2
13 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "extends": "eslint-config-airbnb-base",
3 | "rules": {
4 | "indent": ["error", 4, { "SwitchCase": 1 }],
5 | "max-len": ["off"],
6 | "no-param-reassign": ["off"],
7 | "no-use-before-define": ["off"]
8 | },
9 | "env": {
10 | "jquery": true
11 | }
12 | }
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | /dist/
2 |
3 | node_modules/
4 | yarn.lock
5 | npm-debug.log
6 | yarn-error.log
7 |
--------------------------------------------------------------------------------
/.npmignore:
--------------------------------------------------------------------------------
1 | .npmignore
2 | .gitignore
3 | .editorconfig
4 | .babelrc
5 | .eslintrc
6 | .idea
7 |
8 | node_modules/
9 | package-lock.json
10 | yarn.lock
11 | npm-debug.log
12 | yarn-error.log
13 |
14 | *.test.js
15 | .travis.yml
16 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | language: node_js
2 | node_js:
3 | - stable
4 | - lts/*
5 |
--------------------------------------------------------------------------------
/CHANGELOG.md:
--------------------------------------------------------------------------------
1 | ## 1.0.2 - 2019-03-01
2 | - update package.json "main" field and add "module" field
3 |
4 | ## 1.0.1 - 2018-03-26
5 | * Add rollup build
6 | * Fix .npmignore
7 |
8 | ## 1.0.0 - 2018-03-17
9 | * Initial release
10 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2018
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # jQuery Inline SVG
2 |
3 | [](https://www.npmjs.org/package/jquery-inline-svg)
4 | [](https://bundlephobia.com/result?p=jquery-inline-svg)
5 | [](https://github.com/shrpne/jquery-inline-svg/blob/master/LICENSE)
6 |
7 | Takes an `
` with an SVG as its source and replace it with an inline `