Blame view

node_modules/redent/index.js 222 Bytes
aaac7fed   liuqimichale   add
1
2
3
4
5
6
7
  'use strict';
  var stripIndent = require('strip-indent');
  var indentString = require('indent-string');
  
  module.exports = function (str, count, indent) {
  	return indentString(stripIndent(str), indent || ' ', count || 0);
  };