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

https://github.com/wnuqui/strip_heredoc

strip_heredoc is very small library for Elixir projects that needs to strips indentation in heredocs.
https://github.com/wnuqui/strip_heredoc

elixir strip-heredoc

Last synced: about 1 month ago
JSON representation

strip_heredoc is very small library for Elixir projects that needs to strips indentation in heredocs.

Awesome Lists containing this project

README

          

# strip_heredoc

[![Build Status](https://travis-ci.org/wnuqui/strip_heredoc.png?branch=master)](https://travis-ci.org/wnuqui/strip_heredoc)
[![Inline docs](http://inch-ci.org/github/wnuqui/strip_heredoc.png?branch=master&style=flat)](http://inch-ci.org/github/wnuqui/strip_heredoc) [![Release](http://img.shields.io/github/release/wnuqui/strip_heredoc.svg)](https://github.com/wnuqui/strip_heredoc/releases/latest) [![Hex Version](https://img.shields.io/hexpm/v/strip_heredoc.svg "Hex Version")](https://hex.pm/packages/strip_heredoc)

`strip_heredoc` is a one-method utility library for Elixir projects that needs to strips indentation in heredocs. This is a direct Elixir port from Rails!

The complete documentation for `strip_heredoc` is located [here](https://hex.pm/packages/strip_heredoc).

### Adding strip_heredoc To Your Project

To use `strip_heredoc` with your projects, edit your `mix.exs` file and add it as a dependency:

```elixir
defp deps do
[{:strip_heredoc, "~> 0.8.0"}]
end
```

### Examples

To use `strip_heredoc`, add
```elixir
import StripHeredoc
```
to the top of the module so you can use `strip_heredoc/1` function.

Example:

## License

This software is licensed under [the MIT license](LICENSE.md).