chromium-formatters 1.0.0 → 1.0.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
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
# chromium-
|
|
1
|
+
# chromium-formatters
|
|
2
2
|
|
|
3
3
|
The same formatters used by Chrom(ium) DevTools' "Pretty Print" feature, extracted into a standalone module for use outside of it. The supported languages are CSS, HTML, JavaScript, and JSON.
|
|
4
4
|
|
|
5
|
+
[npm](https://www.npmjs.com/package/chromium-formatters) [jsDelivr](https://www.jsdelivr.com/package/npm/chromium-formatters)
|
|
6
|
+
|
|
5
7
|
## Installation
|
|
6
8
|
|
|
7
9
|
This library has no external dependencies and has both ESM and UMD builds.
|
|
@@ -23,7 +25,7 @@ const { content } = chromiumFormatter('text/javascript', input, ' ');
|
|
|
23
25
|
### UMD (e.g. AMD, CJS, or browser `<script>` tag without `type="module"`):
|
|
24
26
|
|
|
25
27
|
```html
|
|
26
|
-
<script src="dist/main.
|
|
28
|
+
<script src="dist/main.js"></script>
|
|
27
29
|
<script>
|
|
28
30
|
const { content } = chromiumFormatter("text/javascript", input);
|
|
29
31
|
</script>
|
|
@@ -31,7 +33,7 @@ const { content } = chromiumFormatter('text/javascript', input, ' ');
|
|
|
31
33
|
|
|
32
34
|
```js
|
|
33
35
|
// CommonJS
|
|
34
|
-
const chromiumFormatter = require('../dist/main.
|
|
36
|
+
const chromiumFormatter = require('../dist/main.js');
|
|
35
37
|
const { content } = chromiumFormatter("text/javascript", input);
|
|
36
38
|
```
|
|
37
39
|
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|