# to-gfm-code-block

> Generate a github-flavored-markdown fenced-code-block snippet.

Latest version **0.1.1** (published 2015-05-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install to-gfm-code-block
pnpm add to-gfm-code-block
yarn add to-gfm-code-block
bun add to-gfm-code-block
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2015-05-14 |
| First published | 2015-03-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=0.10.0 |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Jon Schlinkert |
| Maintainers | jonschlinkert |
| Keywords | block, code, fence, fences, formatted, gfm, markdown, md, pre, pre-formatted, text |

## Links

- npm: https://www.npmjs.com/package/to-gfm-code-block
- Repository: https://github.com/jonschlinkert/to-gfm-code-block
- Issues: https://github.com/jonschlinkert/to-gfm-code-block/issues
- npm.io page: https://npm.io/package/to-gfm-code-block

## Alternatives

- [@mdxeditor/editor](https://npm.io/package/@mdxeditor/editor.md) — 962.4K weekly downloads
- [mmdb-lib](https://npm.io/package/mmdb-lib.md) — 680.9K weekly downloads
- [playcanvas](https://npm.io/package/playcanvas.md) — 36.2K weekly downloads
- [@glw907/cairn-cms](https://npm.io/package/@glw907/cairn-cms.md) — 967 weekly downloads
- [markdown-to-confluence](https://npm.io/package/markdown-to-confluence.md) — 103 weekly downloads

## Recent versions

- 0.1.1 (latest) — 2015-05-14
- 0.1.0 — 2015-03-11

## README

# to-gfm-code-block [![NPM version](https://badge.fury.io/js/to-gfm-code-block.svg)](http://badge.fury.io/js/to-gfm-code-block)  [![Build Status](https://travis-ci.org/jonschlinkert/to-gfm-code-block.svg)](https://travis-ci.org/jonschlinkert/to-gfm-code-block)

> Generate a github-flavored-markdown fenced-code-block snippet.

Install with [npm](https://www.npmjs.com/)

```bash
npm i to-gfm-code-block --save
```

## Usage

```js
var mdpre = require('to-gfm-code-block');
mdpre('var foo = bar;', 'js');
```

Results in:

<pre>

```js
var foo = bar;
```

</pre>

## Related projects

* [markdown-utils](https://github.com/jonschlinkert/markdown-utils): Micro-utils for creating markdown snippets.
* [remarkable](https://github.com/jonschlinkert/remarkable): Markdown parser, done right. 100% Commonmark support, extensions, syntax plugins, high speed - all in… [more](https://github.com/jonschlinkert/remarkable)

## Running tests

Install dev dependencies:

```bash
npm i -d && npm test
```

## Contributing

Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/to-gfm-code-block/issues/new)

## Author

**Jon Schlinkert**

+ [github/jonschlinkert](https://github.com/jonschlinkert)
+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)

## License

Copyright (c) 2015 Jon Schlinkert
Released under the MIT license.

***

_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 14, 2015._

<!-- deps:mocha -->

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