expand-braces

WebJar for expand-braces

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

expand-braces
Last Version

Last Version

0.1.2
Release Date

Release Date

Type

Type

jar
Description

Description

expand-braces
WebJar for expand-braces
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/micromatch/expand-braces

Download expand-braces

How to add to project

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

Dependencies

compile (3)

Group / Artifact Type Version
org.webjars.npm : array-slice jar [0.2.3,0.3)
org.webjars.npm : array-unique jar [0.2.1,0.3)
org.webjars.npm : braces jar [0.1.2,0.2)

Project Modules

There are no modules declared in this project.

expand-braces NPM version

Wrapper for [braces] to enable brace expansion for arrays of patterns.

Install

Install with npm

$ npm i expand-braces --save

Usage

var expand = require('expand-braces');

Pass an array or list of strings:

expand('{foo,bar}', '{baz,quux}');
// or
expand(['{foo,bar}', '{baz,quux}']);
// both yield => [ 'foo', 'bar', 'baz', 'quux' ];

Pass a function as the last argument to customize output:

expand(['{a..e}', '{f..h}'], function (str) {
  return '_' + str;
});

//=> ['_a', '_b', '_c', '_d', '_e', '_f', '_g', '_h']

Related projects

  • braces: Fastest brace expansion for node.js, with the most complete support for the Bash 4.3 braces… more | homepage
  • is-glob: Returns true if the given string looks like a glob pattern or an extglob pattern.… more | homepage
  • micromatch: Glob matching for javascript/node.js. A drop-in replacement and faster alternative to minimatch and multimatch. Just… more | homepage

Running tests

Install dev dependencies:

$ npm i -d && npm test

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Author

Jon Schlinkert

License

Copyright © 2015 Jon Schlinkert Released under the MIT license.


This file was generated by verb-cli on October 31, 2015.

org.webjars.npm

micromatch

Libraries for fast, accurate glob matching.

Versions

Version
0.1.2
0.1.1