trunc

WebJar for trunc

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

trunc
Last Version

Last Version

0.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

trunc
WebJar for trunc
Project URL

Project URL

http://webjars.org

Download trunc

How to add to project

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

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.

trunc

Install

$ npm i --save trunc

Usage

import trunc from 'trunc'

const str = 'string theory'

trunc(str, 3)
// str...

API

trunc(string, value)

Truncates a string to whatever value you pass in

License

MIT © Vito Belgiorno-Zegna

Versions

Version
0.0.1