Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vilicvane/inplate
A command-line tool processing files with in-place template.
https://github.com/vilicvane/inplate
template
Last synced: 20 days ago
JSON representation
A command-line tool processing files with in-place template.
- Host: GitHub
- URL: https://github.com/vilicvane/inplate
- Owner: vilicvane
- License: mit
- Created: 2020-07-24T23:02:46.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-25T18:15:47.000Z (over 1 year ago)
- Last Synced: 2024-11-30T15:41:56.744Z (23 days ago)
- Topics: template
- Language: JavaScript
- Homepage:
- Size: 281 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![NPM Package](https://badge.fury.io/js/inplate.svg)](https://www.npmjs.com/package/inplate)
![CI](https://github.com/vilic/inplate/workflows/CI/badge.svg)# Inplate
Inplate is a command-line tool processing files with in-place template, currently it's using `handlebars` for template rendering.
Prettier is applied if it's installed and there is configuration file in some upper directory.
## Installation
```bash
yarn add --dev inplate
# or
npm install --save-dev inplate
```## Usage
```bash
inplate [options] [file-pattern]
```### Options
- `--config`
Config files to `require()`.
- `--update`
Update files.
- `--assert`
Assert that files are up-to-date, otherwise exit with non-zero code.
- `--silent`
Silence listed files and diffs.
- `--template `
Path to file template.
- `--data `
Module to load default template data.
- `--comment-styles `
One or more of `#`, `//`, `/*`, `{/*`, `