4.0.0 • Published 3 years ago

redent v4.0.0

Weekly downloads
16,323,799
License
MIT
Repository
github
Last release
3 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_samplereact-native-chenaareditorjs_forkedes-react-bridgeelectron-argsemr-tabulator-tablesreact-native-responsive-sizedfeuk-frontend-manualeasyplayer-myec0lint-style-config-postcsseditor.js-custom-multiple-selectedpayutestingflores-createstyle-guide-maineslint-plugin-playlyfefirebase-sign-in-with-ethereumfawaterak-online-paymentfawatrak-online-paymentfmslfn-lib-exampleevanutilsgatologjawwy_library_newjawy_library_v1gamification-jawwy-libraryframework_test_library_sixdee_new_jawwyibraz-calculatortest_lib_module_aarzzzxxxyyy321123fluent.adflow.reactnativesdkfluent.adflow.reactnativesdk-alphafenglin-uploaderfast-repofhir2fixed_form_buildergamification-integration-newframework_test_library_sixdeeframework_test_library_sixdee_newframework_test_library_sixdee_new_newfreemambafront-end-engineeringfront-and-backjeuxuikhaled-salem-custom-componentsjahancli_calculator
4.0.0

3 years ago

3.0.0

5 years ago

2.0.0

8 years ago

1.0.0

9 years ago