qw

WebJar for qw

License

License

ISC
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

qw
Last Version

Last Version

1.0.1
Release Date

Release Date

Type

Type

jar
Description

Description

qw
WebJar for qw
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/iarna/node-qw

Download qw

How to add to project

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

qw

Quoted word literals!

const qw = require('qw')

const myword = qw` this is
  a long list
  of words`
// equiv of:
const myword = [ 'this', 'is', 'a', 'long', 'list', 'of', 'words' ]

You can embed vars in the usual way:

const mywords = qw`product ${23 * 5} also ${'escaping a string'}`
// equiv of:
const mywords = [ 'product', 23 * 5, 'also', 'escaping a string' ]

You can also embed vars inside strings:

const mywords = qw`product=${23 * 5} also "${'escaping a string'}"`
// equiv of:
const mywords = [ 'product=' + (23 * 5), 'also', '"escaping a string"' ]

DESCRIPTION

This uses template strings to bring over this little common convenience from Perl-land.

Versions

Version
1.0.1