0.1.54 • Published 3 days ago

filetomarkdown v0.1.54

Weekly downloads
-
License
MIT
Repository
github
Last release
3 days ago

FileToMarkdown

A Node.js utility that converts various file types to Markdown:

  • PDF, Word (docx), PowerPoint (pptx), Excel (xlsx)
  • Text and code files
  • ZIP/7ZIP archives

Install

npm install -g filetomarkdown

Usage

Basic command format:

filetomarkdown-convert <input-file> [output-file]

Examples:

# Convert a PDF file (creates report.md in same folder)
filetomarkdown-convert "documents/report.pdf"

# Convert Excel file with custom output location
filetomarkdown-convert "data/budget.xlsx" "converted/budget.md"

# Convert from any location
filetomarkdown-convert "/full/path/to/presentation.pptx"

Try the Converter

Want to see how different file types are converted? Run our test command to try it with example files:

npx filetomarkdown-test --github

This will: 1. Create a src folder in your current directory 2. Download example files from our GitHub repository 3. Convert them to markdown automatically

The created folder structure:

src/
├── exampleFiles/           # Original test files
│   ├── code/              # Sample code files (.js, .py, etc)
│   ├── documents/         # Sample documents (PDF, DOCX, etc)
│   └── archives/          # Sample ZIP/7Z files
│
├── outputAfterConversion/ # Converted markdown files
│   └── code/             # Converted code examples
│
└── viewer.html           # Web-based markdown viewer

To view the results: 1. Navigate to the src folder 2. Open viewer.html in your web browser 3. Browse through the converted files in the viewer

0.1.54

3 days ago

0.1.53

3 days ago

0.1.52

3 days ago

0.1.50

3 days ago

0.1.49

3 days ago

0.1.47

3 days ago

0.1.45

3 days ago

0.1.43

3 days ago

0.1.41

3 days ago

0.1.39

3 days ago

0.1.38

3 days ago

0.1.36

3 days ago

0.1.35

3 days ago

0.1.34

3 days ago

0.1.33

3 days ago

0.1.32

3 days ago

0.1.31

3 days ago

0.1.30

3 days ago

0.1.29

3 days ago

0.1.28

3 days ago

0.1.27

3 days ago

0.1.26

3 days ago

0.1.25

3 days ago

0.1.24

3 days ago

0.1.21

3 days ago

0.1.20

3 days ago

0.1.19

3 days ago

0.1.17

3 days ago

0.1.16

3 days ago

0.1.15

3 days ago

0.1.14

3 days ago

0.1.13

3 days ago

0.1.12

3 days ago

0.1.11

3 days ago

0.1.10

3 days ago

0.1.9

3 days ago

0.1.8

3 days ago

0.1.7

3 days ago

0.1.6

3 days ago

0.1.5

3 days ago

0.1.4

3 days ago