tsml

WebJar for tsml

License

License

MIT
GroupId

GroupId

org.webjars.bowergithub.rvagg
ArtifactId

ArtifactId

archived-tsml
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

tsml
WebJar for tsml
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/rvagg/archived-tsml

Download archived-tsml

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bowergithub.rvagg/archived-tsml/ -->
<dependency>
    <groupId>org.webjars.bowergithub.rvagg</groupId>
    <artifactId>archived-tsml</artifactId>
    <version>1.0.1</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bowergithub.rvagg/archived-tsml/
implementation 'org.webjars.bowergithub.rvagg:archived-tsml:1.0.1'
// https://jarcasting.com/artifacts/org.webjars.bowergithub.rvagg/archived-tsml/
implementation ("org.webjars.bowergithub.rvagg:archived-tsml:1.0.1")
'org.webjars.bowergithub.rvagg:archived-tsml:jar:1.0.1'
<dependency org="org.webjars.bowergithub.rvagg" name="archived-tsml" rev="1.0.1">
  <artifact name="archived-tsml" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bowergithub.rvagg', module='archived-tsml', version='1.0.1')
)
libraryDependencies += "org.webjars.bowergithub.rvagg" % "archived-tsml" % "1.0.1"
[org.webjars.bowergithub.rvagg/archived-tsml "1.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.

tsml

ES6 template string tag for multi-line cleaning - squash multi-line strings into a single line

Use template strings to split up complex string creation over multiple lines and have the newlines and newline white-space prefixes cleaned for you.

tsml is primarily for code readability. Split up template strings over newlines, indent or add additional blank lines to space things out.

Example

From changelog-maker:

const tsml = require('tsml')

function toStringSimple (data) {
  return tsml`

    * [${data.sha.substr(0, 10)}] - 
    ${data.semver.length ? '(' + data.semver.join(', ').toUpperCase() + ') ' : ''}
    ${data.revert ? 'Revert "' : ''}
    ${data.group ? data.group + ': ' : ''}
    ${data.summary} 
    ${data.revert ? '"' : ''}
    ${data.author ? '(' + data.author + ') ' : ''}
    ${data.pr}

  `
}

// -> * [7e88a9322c] - src: make accessors immune to context confusion (Ben Noordhuis) #1238

License

tsml is Copyright (c) 2015 Rod Vagg @rvagg and licenced under the MIT licence. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE.md file for more details.

Versions

Version
1.0.1