Socket
Book a DemoInstallSign in
Socket

hexo-migrator-image

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-migrator-image

Image migrator plugin for Hexo

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
17
41.67%
Maintainers
1
Weekly downloads
 
Created
Source

hexo-migrator-image

A Hexo migrator that imports remote or local images referenced in markdown source

Install

npm install hexo-migrator-image

How Does It Work

This migrator scans all .md files in a hexo blog folder for Markdown's image tags. Then downloads (remote) or copies (local) files to source/images folder and updates all urls in the posts. The images' file names are SHA1 digest of its original url. A backup file named .md.#timestamp#.bak file will be created for each .md files every time. However it is better to use version control or make a copy just in case.

Usage

  • Writes your posts and insert images with any remote url or local file path.

  • Before you deploy, run in your hexo blog folder:

hexo migrate image

Keywords

website

FAQs

Package last updated on 22 Mar 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts