Detalhes do pacote

adjust-md-for-publish

johvin28MIT1.0.0

This is a tool to adjust markdown document for publishing npm package

markdown, readme, npm publish

readme (leia-me)

adjust-md-for-publish

Version npm Dependencies Known Vulnerabilities License

This is a tool to adjust markdown document for publishing npm package, such as removing some section out from the destination document

Usage

const adjustMD = require('adjust-md-for-publish');

adjustMD({
  filename: 'README.md',
  destname: 'dist/README.md',
  filterSection: ['CHANGELOG', 'References']
});

The above code runs in the simulation that README.md needs to be copied to the dist directory for publishing npm package and some chapters (example means CHANGELOG and References) needs to be removed out. The result is as follows.

original README.md content:

# Title

> This is description

## Section 1

xxxxxxxxxxxxxxxx

## CHANGELOG

changelog link here

## References

1. reference link 1
1. reference link 2

## License

MIT

adjust README.md content:

# Title

> This is description

## Section 1

xxxxxxxxxxxxxxxx

## License

MIT

License

MIT

changelog (log de mudanças)

Change Log

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

[1.0.0] - 2018-04-24

Added

  • support remove out some chapters from the markdown document