diff --git a/README.md b/README.md
index a7a019e..0a4f6ce 100644
--- a/README.md
+++ b/README.md
@@ -18,42 +18,42 @@ import eol from 'eol'
## API
### `eol.auto(text)`
-- Normalize line endings in text for the current operating system
-- @return string with line endings normalized to `\r\n` or `\n`
+* Normalize line endings in text to match the current operating system
+* Returns string with line endings normalized to `\r\n` or `\n`
### `eol.crlf(text)`
-- Normalize line endings in text to CRLF (Windows, DOS)
-- @return string with line endings normalized to `\r\n`
+* Normalize line endings in text to CRLF (Windows, DOS)
+* Returns string with line endings normalized to `\r\n`
### `eol.lf(text)`
-- Normalize line endings in text to LF (Unix, OS X)
-- @return string with line endings normalized to `\n`
+* Normalize line endings in text to LF (Unix, OS X)
+* Returns string with line endings normalized to `\n`
### `eol.cr(text)`
-- Normalize line endings in text to CR (Mac OS)
-- @return string with line endings normalized to `\r`
+* Normalize line endings in text to CR (Mac OS)
+* Returns string with line endings normalized to `\r`
### `eol.dub(text)`
- [Dubnormalize.](https://github.com/ryanve/eol/pull/32) [Used internally.](eol.js) [Generative.](#dubbing)
- Create normalizer where linebreaks become text
-- @return composed function
+- Returns composed function
### `eol.before(text)`
- Add linebreak before text
-- @return string with linebreak added before text
+- Returns string with linebreak added before text
### `eol.after(text)`
- Add linebreak after text
-- @return string with linebreak added after text
+- Returns string with linebreak added after text
### `eol.match(text)`
- Detect or inspect linebreaks in text
-- @return array of matched linebreaks
+- Returns array of matched linebreaks
### `eol.split(text)`
- Split text by newline
-- @return array of lines
+- Returns array of lines
### Joining
diff --git a/index.html b/index.html
index 36cddb6..40fdd3f 100644
--- a/index.html
+++ b/index.html
@@ -1,38 +1,132 @@
-
+
-
+ eol is an opensource
+ newline
+ conversion node module.
+ eol helps you smoothly convert line endings
+ in node applications.
+ eol is written in JavaScript and supports TypeScript too.
+ The words newline, linebreak, line ending
+ are used interchangeably here.
+ They mark an end of line.
+ Feel free to play with eol
+ in the console on this page for learning purposes.
+
-
+
+
methods
+
+
eol.auto(text)
+
Normalize text to match the current operating system
+
Returns string with line endings normalized accordingly
+
eol.crlf(text)
+
Normalize line endings in text to CRLF (Windows, DOS)
+
Returns string normalized to \r\nline endings
+
eol.lf(text)
+
Normalize line endings in text to LF (Unix, OS X)
+
Returns string normalized to \nline endings
+
eol.cr(text)
+
Normalize line endings in text to CR (Mac OS)
+
Returns string normalized to \rline endings
+
eol.dub(text)
+
Generate normalizer that replaces line endings with text
+
Returns composed function like above
+
Usable as glue to join arrays
+
eol.before(text)
+
Add linebreak before text
+
Returns string with linebreak added beforetext
+
eol.after(text)
+
Add linebreak after text
+
Returns string with linebreak added aftertext
+
eol.match(text)
+
Detect or inspect linebreaks in text
+
Returns array of matched linebreaks
+
eol.split(text)
+
Split text by newline
+
Returns array of lines
+
+
+
+
+
samples
+
normalizing
+
eol.lf("hello\r\nworld\r\n") // "hello\nworld\n"
+
remove empty lines
+
eol.split(text).filter(line => line).join(eol.lf)
+
detect or inspect
+
eol.match("hello\nworld\n") // ["\n","\n"]
+
coercion
+
String(eol.lf) // "\n"
+
String(eol.cr) // "\r"
+
String(eol.crlf) // "\r\n"
+
generating normalizers
+
let lflf = eol.dub("\n\n") lflf("hello\nworld\n") // "hello\n\nworld\n\n"