has-emoji"> 058f31828c first commit 2 anni fa 3395 058f31828c first commit 2 anni fa 3429 058f31828c first commit 2 anni fa 3430 058f31828c first commit 2 anni fa 3431 058f31828c first commit 2 anni fa 3433 058f31828c first commit 2 anni fa 3439 058f31828c first commit 2 anni fa 3440 058f31828c first commit 2 anni fa 3455 058f31828c first commit 2 anni fa 3456 058f31828c first commit 2 anni fa 3456_fsm 058f31828c first commit 2 anni fa 3456_vm 058f31828c first commit 2 anni fa 3466 058f31828c first commit 2 anni fa 3467 058f31828c first commit 2 anni fa 3468 058f31828c first commit 2 anni fa 3501 058f31828c first commit 2 anni fa 3502 058f31828c first commit 2 anni fa 3503 058f31828c first commit 2 anni fa 3534 058f31828c first commit 2 anni fa 3541 058f31828c first commit 2 anni fa 3541_fsm 058f31828c first commit 2 anni fa 3541_vm 058f31828c first commit 2 anni fa 3542 058f31828c first commit 2 anni fa 3574 058f31828c first commit 2 anni fa 3575 058f31828c first commit 2 anni fa 3576 058f31828c first commit 2 anni fa 3596 058f31828c first commit 2 anni fa 3597 058f31828c first commit 2 anni fa 3598 058f31828c first commit 2 anni fa 3599 058f31828c first commit 2 anni fa 3600 058f31828c first commit 2 anni fa 3600_fsm 058f31828c first commit 2 anni fa 3600_vm 058f31828c first commit 2 anni fa 3601 058f31828c first commit 2 anni fa 3601_fsm 058f31828c first commit 2 anni fa 3601_vm 058f31828c first commit 2 anni fa 3602 058f31828c first commit 2 anni fa 3602_fsm 058f31828c first commit 2 anni fa 3602_vm 058f31828c first commit 2 anni fa 3603 058f31828c first commit 2 anni fa 3603_fsm 058f31828c first commit 2 anni fa 3603_vm 058f31828c first commit 2 anni fa 3604 058f31828c first commit 2 anni fa 3605 058f31828c first commit 2 anni fa 3606 058f31828c first commit 2 anni fa 3607 058f31828c first commit 2 anni fa 3608 058f31828c first commit 2 anni fa 3609 058f31828c first commit 2 anni fa 3712 058f31828c first commit 2 anni fa 3764 058f31828c first commit 2 anni fa 3764_fsm 058f31828c first commit 2 anni fa 3764_vm 058f31828c first commit 2 anni fa 3766 058f31828c first commit 2 anni fa 3767 058f31828c first commit 2 anni fa 3997 058f31828c first commit 2 anni fa 4143 058f31828c first commit 2 anni fa 4144 058f31828c first commit 2 anni fa 4145 058f31828c first commit 2 anni fa 4146 058f31828c first commit 2 anni fa 4147 058f31828c first commit 2 anni fa 4148 058f31828c first commit 2 anni fa 4149 058f31828c first commit 2 anni fa 4150 058f31828c first commit 2 anni fa 4151 058f31828c first commit 2 anni fa 4152 058f31828c first commit 2 anni fa 4153 058f31828c first commit 2 anni fa 4154 058f31828c first commit 2 anni fa 4155 058f31828c first commit 2 anni fa 4156 058f31828c first commit 2 anni fa 4157 058f31828c first commit 2 anni fa 4158 058f31828c first commit 2 anni fa 4159 058f31828c first commit 2 anni fa 4160 058f31828c first commit 2 anni fa 4161 058f31828c first commit 2 anni fa 4162 058f31828c first commit 2 anni fa 4163 058f31828c first commit 2 anni fa 4164 058f31828c first commit 2 anni fa 4165 058f31828c first commit 2 anni fa 4166 058f31828c first commit 2 anni fa 4167 058f31828c first commit 2 anni fa 4168 058f31828c first commit 2 anni fa 4169 058f31828c first commit 2 anni fa 4170 058f31828c first commit 2 anni fa 4171 058f31828c first commit 2 anni fa 4172 058f31828c first commit 2 anni fa 4173 058f31828c first commit 2 anni fa 4174 058f31828c first commit 2 anni fa 5002 058f31828c first commit 2 anni fa 548 058f31828c first commit 2 anni fa 549 058f31828c first commit 2 anni fa 6102 058f31828c first commit 2 anni fa 6104 058f31828c first commit 2 anni fa 6106 058f31828c first commit 2 anni fa 6110 058f31828c first commit 2 anni fa 6111 058f31828c first commit 2 anni fa 6112 058f31828c first commit 2 anni fa 6113 058f31828c first commit 2 anni fa 6117 058f31828c first commit 2 anni fa 826 058f31828c first commit 2 anni fa 827 058f31828c first commit 2 anni fa 828 058f31828c first commit 2 anni fa PG_VERSION 058f31828c first commit 2 anni fa pg_filenode.map 058f31828c first commit 2 anni fa tmt/tiger_frontend - Gogs: Simplico Git Service

説明なし

golf 77628cf8bf first comm 3 年 前
..
LICENSE 77628cf8bf first comm 3 年 前
README.md 77628cf8bf first comm 3 年 前
index.js 77628cf8bf first comm 3 年 前
package.json 77628cf8bf first comm 3 年 前

README.md

brace-expansion

Brace expansion, as known from sh/bash, in JavaScript.

build status downloads Greenkeeper badge

testling badge

Example

var expand = require('brace-expansion');

expand('file-{a,b,c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']

expand('-v{,,}')
// => ['-v', '-v', '-v']

expand('file{0..2}.jpg')
// => ['file0.jpg', 'file1.jpg', 'file2.jpg']

expand('file-{a..c}.jpg')
// => ['file-a.jpg', 'file-b.jpg', 'file-c.jpg']

expand('file{2..0}.jpg')
// => ['file2.jpg', 'file1.jpg', 'file0.jpg']

expand('file{0..4..2}.jpg')
// => ['file0.jpg', 'file2.jpg', 'file4.jpg']

expand('file-{a..e..2}.jpg')
// => ['file-a.jpg', 'file-c.jpg', 'file-e.jpg']

expand('file{00..10..5}.jpg')
// => ['file00.jpg', 'file05.jpg', 'file10.jpg']

expand('{{A..C},{a..c}}')
// => ['A', 'B', 'C', 'a', 'b', 'c']

expand('ppp{,config,oe{,conf}}')
// => ['ppp', 'pppconfig', 'pppoe', 'pppoeconf']

API

var expand = require('brace-expansion');

var expanded = expand(str)

Return an array of all possible and valid expansions of str. If none are found, [str] is returned.

Valid expansions are:

/^(.*,)+(.+)?$/
// {a,b,...}

A comma separated list of options, like {a,b} or {a,{b,c}} or {,a,}.

/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}

A numeric sequence from x to y inclusive, with optional increment. If x or y start with a leading 0, all the numbers will be padded to have equal length. Negative numbers and backwards iteration work too.

/^-?\d+\.\.-?\d+(\.\.-?\d+)?$/
// {x..y[..incr]}

An alphabetic sequence from x to y inclusive, with optional increment. x and y must be exactly one character, and if given, incr must be a number.

For compatibility reasons, the string ${ is not eligible for brace expansion.

Installation

With npm do:

npm install brace-expansion

Contributors

Sponsors

This module is proudly supported by my Sponsors!

Do you want to support modules like this to improve their quality, stability and weigh in on new features? Then please consider donating to my Patreon. Not sure how much of my modules you're using? Try feross/thanks!

License

(MIT)

Copyright (c) 2013 Julian Gruber <julian@juliangruber.com>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.