Skip to content
/ to-wp-txt Public

Convert Markdown to WordPress readme.txt format

Notifications You must be signed in to change notification settings

wpsh/to-wp-txt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Markdown to WordPress Readme

npm version Build Status Coverage Status

A helper library for converting Markdown files to WordPress readme.txt format.

Install

Install using npm as a development dependency:

npm install --save-dev @wpsh/to-wp-txt

Usage

const fs = require('fs');
const towptxt = require('@wpsh/to-wp-txt').default;

fs.readFile('readme.txt.md', 'utf8', (err, readme) => {
  if (err) throw err;
  fs.writeFile('readme.txt', towptxt(readme), err => {
    if (err) throw err;
  });
});

Credits

Created by Kaspars Dambis.

Releases

No releases published

Packages

No packages published