UNPKG

491 BMarkdownView Raw
1# unindent
2
3Remove indentations in a block of code
4
5## Installation
6
7 npm install unindent
8
9## Example
10
11```javascript
12var assert = require('assert');
13var unindent = require('unindent');
14var code = '\ta\t\tb';
15
16assert.equal(unindent(code), 'a\tb');
17```
18
19## API
20
21```javascript
22unindent(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