UnifieReadme : Create a uniform README template for all projects to ensure consistency and clarity of the code base.
English | δΈζ
The README file should tell people why the package or software is being used, how to install it, and how to use it. Unifying README files can make it easier to create and maintain README files.
-
Harmonization : Ensure consistency and clarity of the code base.
-
Customizable : Users can modify and customize it according to their needs.
This project uses node and npm. Go check them out if you don't have them locally installed.
$ npm install --global unifile-readme-spec
Please note that unifilereadme package only provides the function of converting txt files to markdown format, if your txt file does not meet the syntax requirements of markdown format, the converted result may have unexpected errors.
const fs = require('fs');
const unifilereadme = require('unifilereadme');
const txtFile = fs.readFileSync('file.txt', 'utf-8');
const markdown = unifilereadme(txtFile);
fs.writeFileSync('file.md', markdown);
You can also use the command line tool to generate a README.md file:
$ unifilereadme --help
Usage
$ unifilereadme <input> <output>
Options
--help, -h Show help options
--version, -v Show version number
Examples
$ unifilereadme input.txt output.md
Where input.txt is the path of the txt file to be converted and output.md is the path of the generated markdown file. You can replace these two parameters according to the actual situation. The generated markdown file will be saved in the output.md file.
- I/O Functions
Function | Description | Finish |
---|---|---|
create_grid | π Creates a grid from geotiff. | β |
read_raster | π Reads raster data from geotiff. | β |
to_raster | πΊοΈ Write grids to raster files (e.g. geotiff). | β |
- FLOW Functions
Function | Description | Finish |
---|---|---|
water_supply | β | |
water_demand | β | |
water_direction | π³οΈ Calculate the water service direction. | β |
- Accumulate Functions
Function | Description | Finish |
---|---|---|
raster_flow | π Calculate raster-scale water flow. | β |
watershed_flow | β Calculate watershed scale water flow. | β |
- View Functions:
Function | Description | Finish |
---|---|---|
view_plot | π Draw a water service view. | β |
Thanks to the following people who participated in the project:
Found a mistake? There is something meaningless? Send me a pull request !