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
License |
License |
---|---|
GroupId | GroupIdorg.webjars.npm |
ArtifactId | ArtifactIdtrunc |
Last Version | Last Version0.0.1 |
Release Date | Release Date |
Type | Typejar |
Description |
Descriptiontrunc
WebJar for trunc
|
Project URL |
Project URL |
Filename | Size |
---|---|
trunc-0.0.1.pom | |
trunc-0.0.1.jar | 4 KB |
trunc-0.0.1-sources.jar | 22 bytes |
trunc-0.0.1-javadoc.jar | 22 bytes |
Browse |
<!-- 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"]
$ npm i --save trunc
import trunc from 'trunc'
const str = 'string theory'
trunc(str, 3)
// str...
Truncates a string to whatever value you pass in
MIT © Vito Belgiorno-Zegna