An open API service indexing awesome lists of open source software.

https://github.com/richardcarls/nunjucks-autolink

Nunjucks filter for autolinking URLs
https://github.com/richardcarls/nunjucks-autolink

Last synced: 2 months ago
JSON representation

Nunjucks filter for autolinking URLs

Awesome Lists containing this project

README

        

# nunjucks-autolink
[![Build Status](https://travis-ci.org/richardcarls/nunjucks-autolink.svg?branch=master)](https://travis-ci.org/richardcarls/nunjucks-autolink)
[![Code Climate](https://codeclimate.com/github/richardcarls/nunjucks-autolink/badges/gpa.svg)](https://codeclimate.com/github/richardcarls/nunjucks-autolink)

Nunjucks filter for autolinking URLs

### Installation

```shell
npm install nunjucks-autolink --save
```

### Usage
Require the filter and pass into your nunjucks env

```js
var env = new nunjucks.Environment(
new nunjucks.FileSystemLoader('views', { noCache: true, }),
{ autoescape: true, });

env.addFilter('autolink', require('nunjucks-autolink'));
```

### Tests

```shell
npm test
```

## Credits
- [Richard Carls](https://richardcarls.com)

## License

[The MIT License](http://opensource.org/licenses/MIT)

Copyright (c) 2016 Richard Carls