to-markdown-cli
    TypeScript icon, indicating that this package has built-in type declarations

    0.4.4 • Public • Published

    to-markdown-cli

    All Contributors Node CI npm GitHub last commit

    Installation

    npm install -g to-markdown-cli
    

    Usage

    Usage: html2md [options]
     
    Options:
      -V, --version          output the version number
      -i, --input <input>    path to the input file (if input is stdin) it will be ignored
      -o, --output <output>  path to the output file
      -c, --clipboard        use only the clipboard for input and output
      -g, --gfm              use GitHub Flavored Markdown
      -h, --help             output usage information
     
         _   _   _   _   _   _   _
        / \ / \ / \ / \ / \ / \ / \
       ( h | t | m | l | 2 | m | d )
        \_/ \_/ \_/ \_/ \_/ \_/ \_/
     
        html2md turns html into markdown
     
        - if no input file is given it ueses the clipboard content
        - if no output file is given it logs the result to stdout
        - if there is input from stdin clipboard will be ignored for inputs
     
        Examples:
            $ html2md -i ./foo.html # output to stdout
            $ html2md -i ./foo.html -o out.md # output to out.md
            $ html2md -o out.md # clipboard to out.md
            $ html2md -c # clipboard to clipboard
            $ html2md # clipboard to stdout
            $ html2md -g # clipboard to stdout using GitHub flavored markdown
            $ echo "<h1>foo</h1>" | html2md # will output to stdout
     
        Acknowledgments:
            Build on these great modules:
            - https://github.com/domchristie/turndown
            - https://github.com/sindresorhus/clipboardy
            - https://github.com/tj/commander.js

    Contributors

    Thanks goes to these wonderful people (emoji key):


    roose

    💻

    Fabian Morón Zirfas

    💻

    cayhorstmann

    🐛

    This project follows the all-contributors specification. Contributions of any kind welcome!

    Test

    npm run test

    Acknowledgements

    Build on these great modules:

    License

    Copyright (c) 2017-2020 Fabian Morón Zirfas Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    see also http://www.opensource.org/licenses/mit-license.php

    Install

    npm i to-markdown-cli

    DownloadsWeekly Downloads

    52

    Version

    0.4.4

    License

    MIT

    Unpacked Size

    42.2 kB

    Total Files

    36

    Last publish

    Collaborators

    • avatar