|
1 | 1 | # next-replace-in-file
|
2 | 2 | > File content replace for next.
|
3 | 3 |
|
| 4 | +[![version][version-image]][version-url] |
| 5 | +[![license][license-image]][license-url] |
| 6 | +[![size][size-image]][size-url] |
| 7 | +[![download][download-image]][download-url] |
| 8 | + |
4 | 9 | ## installation
|
5 | 10 | ```bash
|
6 | 11 | npm install -S @feizheng/next-replace-in-file
|
@@ -41,28 +46,43 @@ npm install -S @feizheng/next-replace-in-file
|
41 | 46 | ## options
|
42 | 47 | > Not fully, because `fast-glob` does not implement all options of `node-glob`. See table below.
|
43 | 48 |
|
44 |
| - | node-glob(😂) | fast-glob(😎) | |
45 |
| - | :-----------: | :---------------------------------------------------------: | |
46 |
| - | `cwd` | [`cwd`](#cwd) | |
47 |
| - | `root` | – | |
48 |
| - | `dot` | [`dot`](#dot) | |
49 |
| - | `nomount` | – | |
50 |
| - | `mark` | [`markDirectories`](#markdirectories) | |
51 |
| - | `nosort` | – | |
52 |
| - | `nounique` | [`unique`](#unique) | |
53 |
| - | `nobrace` | [`nobrace`](#nobrace) or [`brace`](#brace) | |
54 |
| - | `noglobstar` | [`noglobstar`](#noglobstar) or [`globstar`](#globstar) | |
55 |
| - | `noext` | [`noext`](#noext) or [`extension`](#extension) | |
56 |
| - | `nocase` | [`nocase`](#nocase) or [`case`](#case) | |
57 |
| - | `matchBase` | [`matchbase`](#matchbase) | |
58 |
| - | `nodir` | [`onlyFiles`](#onlyfiles) | |
59 |
| - | `ignore` | [`ignore`](#ignore) | |
60 |
| - | `follow` | [`followSymlinkedDirectories`](#followsymlinkeddirectories) | |
61 |
| - | `realpath` | – | |
62 |
| - | `absolute` | [`absolute`](#absolute) | |
| 49 | + | node-glob(😂) | fast-glob(😎) | |
| 50 | + | :----------: | :---------------------------------------------------------: | |
| 51 | + | `cwd` | [`cwd`](#cwd) | |
| 52 | + | `root` | – | |
| 53 | + | `dot` | [`dot`](#dot) | |
| 54 | + | `nomount` | – | |
| 55 | + | `mark` | [`markDirectories`](#markdirectories) | |
| 56 | + | `nosort` | – | |
| 57 | + | `nounique` | [`unique`](#unique) | |
| 58 | + | `nobrace` | [`nobrace`](#nobrace) or [`brace`](#brace) | |
| 59 | + | `noglobstar` | [`noglobstar`](#noglobstar) or [`globstar`](#globstar) | |
| 60 | + | `noext` | [`noext`](#noext) or [`extension`](#extension) | |
| 61 | + | `nocase` | [`nocase`](#nocase) or [`case`](#case) | |
| 62 | + | `matchBase` | [`matchbase`](#matchbase) | |
| 63 | + | `nodir` | [`onlyFiles`](#onlyfiles) | |
| 64 | + | `ignore` | [`ignore`](#ignore) | |
| 65 | + | `follow` | [`followSymlinkedDirectories`](#followsymlinkeddirectories) | |
| 66 | + | `realpath` | – | |
| 67 | + | `absolute` | [`absolute`](#absolute) | |
63 | 68 |
|
64 | 69 |
|
65 | 70 | ## resources
|
66 | 71 | - https://github.com/afeiship/next-array-replace
|
67 | 72 | - https://github.com/sindresorhus/globby
|
68 | 73 | - https://github.com/mrmlnc/fast-glob#options-1
|
| 74 | + |
| 75 | +## license |
| 76 | +Code released under [the MIT license](https://github.com/afeiship/next-replace-in-file/blob/master/LICENSE.txt). |
| 77 | + |
| 78 | +[version-image]: https://img.shields.io/npm/v/@feizheng/next-replace-in-file |
| 79 | +[version-url]: https://npmjs.org/package/@feizheng/next-replace-in-file |
| 80 | + |
| 81 | +[license-image]: https://img.shields.io/npm/l/@feizheng/next-replace-in-file |
| 82 | +[license-url]: https://github.com/afeiship/next-replace-in-file/blob/master/LICENSE.txt |
| 83 | + |
| 84 | +[size-image]: https://img.shields.io/bundlephobia/minzip/@feizheng/next-replace-in-file |
| 85 | +[size-url]: https://github.com/afeiship/next-replace-in-file/blob/master/dist/next-replace-in-file.min.js |
| 86 | + |
| 87 | +[download-image]: https://img.shields.io/npm/dm/@feizheng/next-replace-in-file |
| 88 | +[download-url]: https://www.npmjs.com/package/@feizheng/next-replace-in-file |
0 commit comments