1 | # unindent
|
2 |
|
3 | Remove indentations in a block of code
|
4 |
|
5 | ## Installation
|
6 |
|
7 | npm install unindent
|
8 |
|
9 | ## Example
|
10 |
|
11 | ```javascript
|
12 | var assert = require('assert');
|
13 | var unindent = require('unindent');
|
14 | var code = '\ta\t\tb';
|
15 |
|
16 | assert.equal(unindent(code), 'a\tb');
|
17 | ```
|
18 |
|
19 | ## API
|
20 |
|
21 | ```javascript
|
22 | unindent(code, [opts]);
|
23 | ```
|
24 |
|
25 | * `code` - A string of code.
|
26 | * `opts` - An optional object literal support these options:
|
27 | * `tabSize` - A number. If specified, the starting tabs of each line will be convert to spaces. |
\ | No newline at end of file |