Miss any of our Open RFC calls?Watch the recordings here! »

trim-indentation

4.11.0 • Public • Published

trim-indentation

Travis CI Build Status NPM version NPM downloads Dependency Status Dev Dependency Status
GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Trim the initial indentation from a string

Usage

Complete API Documentation.

Tests.

Install

npm

  • Install: npm install --save trim-indentation
  • Import: import pkg from ('trim-indentation')
  • Require: const pkg = require('trim-indentation').default

Deno

import pkg from 'https://unpkg.com/trim-indentation@^4.11.0/edition-deno/index.ts'

Skypack

<script type="module">
    import pkg from '//cdn.skypack.dev/trim-indentation@^4.11.0'
</script> 

unpkg

<script type="module">
    import pkg from '//unpkg.com/trim-indentation@^4.11.0'
</script> 

jspm

<script type="module">
    import pkg from '//dev.jspm.io/trim-indentation@4.11.0'
</script> 

Editions

This package is published with the following editions:

  • trim-indentation/source/index.ts is TypeScript source code with Import for modules
  • trim-indentation/edition-browsers/index.js is TypeScript compiled against ES2019 for web browsers with Import for modules
  • trim-indentation aliases trim-indentation/edition-esnext/index.js
  • trim-indentation/edition-esnext/index.js is TypeScript compiled against ESNext for Node.js 10 || 12 || 13 || 14 with Require for modules
  • trim-indentation/edition-esnext-esm/index.js is TypeScript compiled against ESNext for Node.js 12 || 13 || 14 with Import for modules
  • trim-indentation/edition-deno/index.ts is TypeScript source code made to be compatible with Deno

History

Discover the release history by heading on over to the HISTORY.md file.

Contribute

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

Backers

Maintainers

These amazing people are maintaining this project:

Sponsors

No sponsors yet! Will you be the first?

GitHub Sponsors donate button Patreon donate button Flattr donate button Liberapay donate button Buy Me A Coffee donate button Open Collective donate button crypto donate button PayPal donate button Wishlist browse button

Contributors

These amazing people have contributed code to this project:

Discover how you can contribute by heading on over to the CONTRIBUTING.md file.

License

Unless stated otherwise all works are:

and licensed under:

Install

npm i trim-indentation

DownloadsWeekly Downloads

207

Version

4.11.0

License

MIT

Unpacked Size

30 kB

Total Files

15

Last publish

Collaborators

  • avatar