3.0.0 • Published 7 years ago

webremix v3.0.0

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
7 years ago

Webremix

Converts your media urls and links to embedded HTML.

Installation

npm install webremix

How to Use

var remix = require('webremix');

remix.generate('http://amazinggifs.com/cats.gif look at these amazing cats!', function(err, resp) {
    console.log(resp);
});

Output becomes:

<div class="image-wrapper">
    <a href="http://amazinggifs.com/cats.gif" target="_blank">
        <img src="http://amazinggifs.com/cats.gif">
    </a>
</div> look at these amazing cats!

Video size options

If you want to pass in a different width and height for Youtube/Vimeo, pass in the following:

var options = {
    width: 500,
    height: 200
};

remix.generate('https://www.youtube.com/watch?v=XYc6ZiV07ZE', options, function(err, resp) {
    console.log(resp);
});

Supported media

  • Regular links (http://whatever.org or whatever.org)
  • Links with image extensions of jpg|gif|png|jpeg
  • Instagram urls
  • Youtube urls
  • Vimeo urls
  • Soundcloud urls (will fall back to a regular link if the author has sharing disabled)

Testing

npm test
3.0.0

7 years ago

2.0.0

7 years ago

1.2.6

7 years ago

1.2.5

7 years ago

1.2.4

7 years ago

1.2.3

7 years ago

1.2.2

7 years ago

1.2.0

7 years ago

1.1.0

9 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago

0.0.6

11 years ago

0.0.5

11 years ago

0.0.4

11 years ago

0.0.3

11 years ago

0.0.2

11 years ago

0.0.1

11 years ago