awoo-pretty
nice pretty links for awoo
Installation
npm install awoo-pretty
Usage example
const awoo = const plugin = // enter our main function:// the main function should be an async function so that// it automatically returns a promise
Filters
By default, pretty
operates on all HTML files (files that end with .html
).
This can be changed easily by using a custom filter. A filter is a function that
takes a file and returns a boolean that describes whether that file should have
pretty
enabled or not. A custom filter can look like this:
{ return filepath}
This filter only matches HTML files that are located in the my-dir
directory.
To use the filter, just pass it into the plugin options:
Maintainers
- Olivia Hugger <olivia@fastmail.com>
License
MIT (see LICENSE document)