npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

hexo-tag-mtime

v0.0.7

Published

hexo-tag-mtime

Downloads

9

Readme

hexo-tag-mtime

LICENSE NPM VERSION

Embed a movie card on your Hexo article, used mtime API.

Installation

npm install hexo-tag-mtime --save

Usage

Use tags:

{% mtime videoId %}

Example:

{% mtime 218707 %}

Then, it generates HTML:

<div class="mtime-movie_card">
    <div class="mtime-info_section">
        <div class="mtime-movie_header"><img src="http://img5.mtime.cn/mt/2019/01/30/152305.14999287_1280X720X2.jpg"
                class="mtime-locandina">
            <h1>流浪地球</h1>
            <h4>2019,郭帆</h4><span class="mtime-minutes">125分钟</span>
            <p class="mtime-type">冒险,科幻,剧情</p>
        </div>
        <div class="mtime-movie_desc">
            <p class="mtime-text">太阳即将毁灭,人类在地球表面建造出巨大的推进器,寻找新家园。然而宇宙之路危机四伏,为了拯救地球,为了人类能在漫长的2500年后抵达新的家园,流浪地球时代的年轻人挺身而出,展开争分夺秒的生死之战。</p>
        </div>
    </div>
    <div class="mtime-blur_back" style="background: url(http://img5.mtime.cn/pi/2018/03/30/185755.98495617_1280X720X2.jpg); no-repeat fixed;background-size: cover;"></div>
</div>

How to get the movie id?

  1. Open mtime website.
  2. Search movie than you want to insert.
  3. Url is like this: http://movie.mtime.com/218707/.
  4. The NUMBER is video id.

Options

  • css: You can customize the css link, if NOT, it will use CDN by default.

CDN url is https://cdn.mayuko.cn/css/hexo-tag-mtime.css.

By modifying the _config.yml file under the Hexo root directory.

mtime:
  css: https://cdn.mayuko.cn/css/hexo-tag-mtime.css

Style

The default css style used Simone Bernabè:

API

The Hexo plugin used unofficial API by jokermonn, It's Powerful!

License

MIT