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.
- Host: GitHub
- URL: https://github.com/wnuqui/strip_heredoc
- Owner: wnuqui
- License: mit
- Created: 2017-04-18T14:45:26.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-19T21:31:55.000Z (about 9 years ago)
- Last Synced: 2025-12-29T08:19:47.151Z (6 months ago)
- Topics: elixir, strip-heredoc
- Language: Elixir
- Homepage:
- Size: 16.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# strip_heredoc
[](https://travis-ci.org/wnuqui/strip_heredoc)
[](http://inch-ci.org/github/wnuqui/strip_heredoc) [](https://github.com/wnuqui/strip_heredoc/releases/latest) [](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).