inspect-f

WebJar for inspect-f

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

inspect-f
Last Version

Last Version

1.2.2
Release Date

Release Date

Type

Type

jar
Description

Description

inspect-f
WebJar for inspect-f
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/fluture-js/inspect-f

Download inspect-f

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.npm/inspect-f/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>inspect-f</artifactId>
    <version>1.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/inspect-f/
implementation 'org.webjars.npm:inspect-f:1.2.2'
// https://jarcasting.com/artifacts/org.webjars.npm/inspect-f/
implementation ("org.webjars.npm:inspect-f:1.2.2")
'org.webjars.npm:inspect-f:jar:1.2.2'
<dependency org="org.webjars.npm" name="inspect-f" rev="1.2.2">
  <artifact name="inspect-f" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='inspect-f', version='1.2.2')
)
libraryDependencies += "org.webjars.npm" % "inspect-f" % "1.2.2"
[org.webjars.npm/inspect-f "1.2.2"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

inspect-f

Unmaintained

With the introduction of default arguments to the language, it has become infeasable to maintain a regular expression and string-operation based approach to adjusting indentation.

Don't use this module. Instead, use a parser-based solition.


NPM Version Dependencies Build Status Code Coverage

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:

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

Then the following:

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

Would output:

function someDeeplyIndentedFunction(a, b){
  return (
    a + b
  );
}
org.webjars.npm

Fluture

Fluture is a functional alternative to Promises

Versions

Version
1.2.2