Hacker GitHub

← All repos

iconfu/svg-inject

View on GitHub ↗ ★ 837 TypeScript

A tiny, intuitive, robust, caching solution for injecting SVG files inline into the DOM.

6 mentions on Hacker News by 1 person: 3 stories, 3 comments · first 2018-08-31 · latest 2021-02-12

Mentions per year 6 mentions · busiest year 2018 (3)
20082026
  1. …at SVG Injection. This may solve your problems, as the injector will add a unique id to your SVG: https://github.com/iconfu/svg-inject
    comment by jansan · 2021-02-12 · in SVG: The Good, the Bad and the Ugly
  2. …pretty well and almost feels like working with normal images. Here is an open source SVG injector: https://github.com/iconfu/svg-inject
    comment by jansan · 2020-02-11 · in Where are all the animated SVGs?
  3. ▲ 52
    Show HN: Make external SVG files styleable with CSS through injection
    story by jansan · 2019-01-25 · 12 comments
  4. …a request to implement this functionality for ParcelJS, but decided against it. Here is the issue: https://github.com/iconfu/svg-inject/issues/19 Basically we want to keep the project small and focused on the injection itself. Also there…
  5. ▲ 10
    Show HN: SVGInject – Make external SVG files fully CSS styleable with injection
    story by jansan · 2018-10-23 · 3 comments
  6. ▲ 1
    Show HN: SVGInject – Self injecting SVG image elements
    story by jansan · 2018-08-31 · 1 comment