# mardup

> Upload the markdown file to github

Latest version **1.0.6** (published 2021-08-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install mardup
pnpm add mardup
yarn add mardup
bun add mardup
```

Provides the command `mardup`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2021-08-24 |
| First published | 2021-08-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 4 |
| Unpacked size | 10 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | youxam |
| Maintainers | youxam |

## Links

- npm: https://www.npmjs.com/package/mardup
- Repository: https://github.com/YouXam/mardup
- Homepage: https://github.com/YouXam/mardup#readme
- Issues: https://github.com/YouXam/mardup/issues
- npm.io page: https://npm.io/package/mardup

## Dependencies (4)

- [mammoth](https://npm.io/package/mammoth.md) ^1.4.17
- [@octokit/core](https://npm.io/package/@octokit/core.md) ^3.5.1
- [image-data-uri](https://npm.io/package/image-data-uri.md) ^2.0.1
- [cos-nodejs-sdk-v5](https://npm.io/package/cos-nodejs-sdk-v5.md) ^2.10.0

## Recent versions

- 1.0.6 (latest) — 2021-08-24
- 1.0.5 — 2021-08-24
- 1.0.4 — 2021-08-24
- 1.0.3 — 2021-08-23
- 1.0.2 — 2021-08-23
- 1.0.1 — 2021-08-23
- 1.0.0 — 2021-08-23

## README

# mardup


上传 Markdown 文件或者 Word 文档(转为`.md`格式)到 github, 同时将图片上传到腾讯云对象存储

## 安装

```
npm install mardup -g
```
## 使用

初次使用在命令行下输入`mardup`, 用户主目录下会创建配置文件, 填写好配置文件之后即可使用

```js
module.exports = {
    root: '/', // 腾讯云对象存储和 Github 存储库的根目录
    github: {
        owner: "YOU", // Github 用户名
        repo: "YOUR_REPO", // Github 仓库名
        token: "YOUR_GITHUB_TOKEN", // Github Personal access token
    },
    cos: {
        SecretId: 'YOUR_SECRETID', // 腾讯云 SecretId
        SecretKey: 'YOUR_SECRETKEY', // 腾讯云 SecretKey
        Bucket: 'YOUR_BUCKET', // 腾讯云对象存储 Bucket 名称
        Region: 'YOUR_REGION' // 腾讯云对象存储区域
    },
    handle: function (s) { // 传入图片链接, 进行处理之后返回
        return s;
    }
}
```

```
mardup <本地目标文件> <远程目标文件>
```

---
_Source: https://npm.io/package/mardup · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
