# inspect-f

> Cast a function to string and adjust its indentation

Latest version **1.2.2** (published 2018-01-16) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install inspect-f
pnpm add inspect-f
yarn add inspect-f
bun add inspect-f
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 1.2.2 |
| Published | 2018-01-16 |
| First published | 2016-03-22 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Aldwin Vlasblom |
| Maintainers | avaq |
| Keywords | cast, inspect, function, toString, show, indent |

## Links

- npm: https://www.npmjs.com/package/inspect-f
- Repository: https://github.com/fluture-js/inspect-f
- Homepage: https://github.com/fluture-js/inspect-f#readme
- Issues: https://github.com/fluture-js/inspect-f/issues
- npm.io page: https://npm.io/package/inspect-f

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [better](https://npm.io/package/better.md) — 42 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads

## Recent versions

- 1.2.2 (latest) — 2018-01-16
- 1.2.1 — 2017-02-06
- 1.2.0 — 2017-01-04
- 1.1.1 — 2016-05-07
- 1.1.0 — 2016-03-30
- 1.0.0 — 2016-03-22

## README

# inspect-f

[![NPM Version](https://badge.fury.io/js/inspect-f.svg)](https://www.npmjs.com/package/inspect-f)
[![Dependencies](https://david-dm.org/fluture-js/inspect-f.svg)](https://david-dm.org/fluture-js/inspect-f)
[![Build Status](https://travis-ci.org/fluture-js/inspect-f.svg?branch=master)](https://travis-ci.org/fluture-js/inspect-f)
[![Code Coverage](https://codecov.io/gh/fluture-js/inspect-f/branch/master/graph/badge.svg)](https://codecov.io/gh/fluture-js/inspect-f)


Cast a function to string and adjust its indentation. Intended for rendering
function bodies in `pre`-tags or consoles and what have you.

> `npm install --save inspect-f`


## Usage

Let's say we have this deeply indented function which uses a 6-space indentation scheme:

```js
          function someDeeplyIndentedFunction(a, b){
                return (
                      a + b
                );
          }
```

Then the following:

```js
const inspectf = require('inspect-f');
console.log(inspectf(2, someDeeplyIndentedFunction));
```

Would output:

```js
function someDeeplyIndentedFunction(a, b){
  return (
    a + b
  );
}
```

---
_Source: https://npm.io/package/inspect-f · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
