4.0.0 • Published 4 years ago

redent v4.0.0

Weekly downloads
16,323,799
License
MIT
Repository
github
Last release
4 years ago

redent

Strip redundant indentation and indent the string

Install

$ npm install redent

Usage

import redent from 'redent';

redent('\n  foo\n    bar\n', 1);
//=> '\n foo\n   bar\n'

API

redent(string, count?, options?)

string

Type: string

The string to normalize indentation.

count

Type: number\ Default: 0

How many times you want options.indent repeated.

options

Type: object

indent

Type: string\ Default: ' '

The string to use for the indent.

includeEmptyLines

Type: boolean\ Default: false

Also indent empty lines.


@testing-library/jest-domarchetype-libraryeasy-select-rnchinjowwchinjowreact-native-bluetooth2killi8n-react-native-fast-image@oopsunome/latest-gitignore@arisageha/react-lazyloadairscanairscan-examplebb-chatreact-native-esc-pos-sahaab@borisovart/atol-kkt-module@frxf/frxfdeneme323112@ntt_app/react-native-custom-notificationreact-native-covid-sdk@yetan/yetan-clilatest-gitignore-clisetgit-cliflatten-folder-cli@jttechnic/interpreter@oopsunome/fast-gitignorecthpb-plugin-socialtmp-prisma-upgrade@olivervorasai/slidermysql-formatpanqibaoreact-native-printer-brothershahnbee-testreact-native-shekhar-bridge-testcogoportutilshahnbee-test-client@oiti/documentoscopy-react-native@mink-opn/build-tokensquoc-testunblock-block-save-variables@infinitebrahmanuniverse/nolb-redeplaygrounds@saaspe/componentsexpand-react-bridgeopea-bootstraapluminos-ui-coresklif-ui-kitsklif-api@everything-registry/sub-chunk-2634iqra-calculatorjawwy-sdkjawwy_gamification_releasereact-native-sphereuisphereuijawwy_libraryreact-native-credit-card-pkgsklif-uireact-native-jawwy_samplelapture-ui-complaptureuigriffin-ui-librarytarimatazsweden-prayer-times-clitailwind-vector-effecttest-iki-mini-apptest-library-123test-haptik-libwinx-form-winxwoofwoofweb-elements-iconsvue-highlight.jsvue-highlight.js-numberworkspaces-runwifi_configuration_packagesui-monorepotest-zeo-collectsvelte-component-libsweetalert2-denazificationvtexyvue-compmentvishwanaathh4_dbvishwanaathh4_db1vishwanaathh4_db2vishwanaathh4_dbbvision-camera-plugin-face-detectorvision-camera-plugin-scan-facesvision-camera-base64-resizedvitest-domuvu-expect-domvcloudcam-playkit-js-hlsvantiq-reactvideo-multi-uploadervue-dev-clone@directus/cli@dotconf-pro/dotconf-pro@dotconf-pro/dotenv@dimcheify/dimui@cristianps1988/ds-template@cs6/react-native-test-native-view-library@con-test/react-native-concent-common@dan/cryptocoins-icons
4.0.0

4 years ago

3.0.0

6 years ago

2.0.0

9 years ago

1.0.0

10 years ago