1.2.4 • Published 4 years ago
@rolandwarburton/md2asset v1.2.4
Markdown 2 Asset
Convert urls from websites like imgur to files on your local computer.
Getting Started
Given a markdown file...
# My Markdown File


Running this command...
md2asset folder/file.mdWill generate...
folder
├── assets
│ ├── 01_1.png
│ ├── 01_2.png
│ └── 02_1.png
└── test.mdAdditional Notes
Take a look at the downloadImage event emitter to add your own custom hooks.
Dev notes
After making a change, test the app using npm link to simulate it as a real CLI app.
npm unlink md2asset && \
npm run build && \
npm link && md2asset test/test.mdIf you wish to run the app on a real file, you can use the NO_WRITE environment variable.
NO_WRITE=true npm run dev