1.2.5 • Published 6 years ago

markdown-image-size v1.2.5

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

markdown-image-size

For Bowser's First Render

parse markdown text => get image elements => image size (image-size, sync-request) => replace markdown image text to html markup.

Support HTML & Markdown

Usage

Command

npm install -g markdown-image-size
 Usage: mimgs [options] <files...>

 Options:

   -v --version                get current version
   -h --help                   how to use it
   -s --source <path or url>   base path from relative path
   -o --overwrite              overwrite files
   -q --quiet                  Don't print any
   -l --log                    Do print log, Don't print text
   --ignore-relative           ignore relative path, overrides any -s options.
mimgs -s "dirPath or baseUrl" file/to/markdown.md -o

Package

npm install -save markdown-image-size
var markDownImageSize = require('markdown-image-size');
var markDownImageSizeFromPath = markDownImageSize.markDownImageSizeFromPath;

var options = {
    ignoreRelative: false, // default: false
    log: true,             // default: false
    source: ""             // default: ""
}

var newMarkdown = markDownImageSize("markdown text", options);
newMarkdown = markDownImageSizeFromPath("file/to/markdown", options);
1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago