rolldown-license-plugin 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
# rolldown-license-plugin
|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.org/package/rolldown-license-plugin) [](https://www.npmjs.org/package/rolldown-license-plugin)
|
|
3
|
+
[](https://www.npmjs.org/package/rolldown-license-plugin) [](https://www.npmjs.org/package/rolldown-license-plugin) [](https://depx.co/pkg/rolldown-license-plugin)
|
|
4
4
|
|
|
5
|
-
Rolldown plugin to extract dependency licenses
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```console
|
|
10
|
-
npm i rolldown-license-plugin
|
|
11
|
-
```
|
|
5
|
+
Rolldown plugin to extract dependency licenses.
|
|
12
6
|
|
|
13
7
|
## Usage
|
|
14
8
|
|
|
@@ -19,8 +13,8 @@ export default {
|
|
|
19
13
|
plugins: [
|
|
20
14
|
licensePlugin({
|
|
21
15
|
onDone(licenses) {
|
|
22
|
-
// licenses is an array of {name, version, license, licenseText}
|
|
23
16
|
console.info(licenses);
|
|
17
|
+
// => [{name, version, license, licenseText}]
|
|
24
18
|
},
|
|
25
19
|
}),
|
|
26
20
|
],
|
|
@@ -31,7 +25,7 @@ export default {
|
|
|
31
25
|
|
|
32
26
|
### `licensePlugin(opts)`
|
|
33
27
|
|
|
34
|
-
Returns
|
|
28
|
+
Returns the plugin.
|
|
35
29
|
|
|
36
30
|
#### `opts.onDone`
|
|
37
31
|
|
|
@@ -63,6 +57,10 @@ type LicenseInfo = {
|
|
|
63
57
|
};
|
|
64
58
|
```
|
|
65
59
|
|
|
60
|
+
### `wrap(length)`
|
|
61
|
+
|
|
62
|
+
Function to word-wrap text to a certain column width.
|
|
63
|
+
|
|
66
64
|
## License
|
|
67
65
|
|
|
68
66
|
© [silverwind](https://github.com/silverwind), distributed under BSD-2-Clause.
|
package/package.json
CHANGED