Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
1filecompiler
Compiles linked css and javascript files into one html file
This is a useful tool for compiling html, css and javascript into one html file. I could not find something like this so I made it myself.
I created this because I wanted a user to be able to open one html file and view a website without loading content from the internet or other local files.
This probably has a lot of bugs so be aware if your gonna use this in production tip: don't
It also does not manage errors well at all
npm i -g 1filecompiler for CLI
npm i --save-dev 1filecompiler for API
The CLI is easy
npx 1fc input.html output.html
const { compile } = require("1fc"); // Import module
let compiledHTML = compile("./input.html"); // Read file and then compile it
console.log(compiledHTML); // Log the compiled output to console
Download counts and popularity will appear here as the collector receives them.
| Package / target | Requirement | Relationship |
|---|---|---|
html-minifierEnvironment{
"local_name": "html-minifier",
"alias": false,
"peer_metadata": null
} | ^4.0.0 | runtime |
jsdomEnvironment{
"local_name": "jsdom",
"alias": false,
"peer_metadata": null
} | ^16.4.0 | runtime |
uglify-esEnvironment{
"local_name": "uglify-es",
"alias": false,
"peer_metadata": null
} | ^3.3.9 | runtime |
Source distribution
{
"integrity": "sha512-PqOpQ2QjbXLRIh7mhSdO3nDn1lKofUB2y2bbnftyMbYOw5JjGzNtepaptfQYwUUai5xuwIteF4Wx8N+pIV4/gg==",
"shasum": "71540d8235f3879e87c392aa78b6786eb9f39b24",
"tarball": "https://registry.npmjs.org/1filecompiler/-/1filecompiler-0.0.1.tgz",
"fileCount": 10,
"unpackedSize": 5228,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfrFwNCRA9TVsSAnZWagAA29EP/jGGDJbpBTg7tZxvpTl/\nKALAmrOvLIzg4h0N3Bz1tP80aHNV3nvsmN6oSNRFar9wF5M4HBd5uOYv2UAr\n9FkRG6v/QJdGBnmE1aFCoo0dG1dYbyXGw/Kv9bKO3VhvNVtE2keBNufCu+0r\ntVxfrooTMpYWDzu2mbHBOPOgbafGZkHpRB0qNvYQ5aA0RC6ZRHSR/qnPhq2a\n+OBtHNWhpprBmp0jzzIsMGCe5aCZSlaOXSOUrzoV8VYxZwovPsLbyYK7zU+K\ncCwTxFYcTGxPMyHR+W15F/j8fmosieuVmkDMlJ1Xf8jVjM+io8xfoX19uUbT\nf5ZusaDkJF+gAcietMxj+IrkGJTnl8TTBJfaGIM8MqJpvF9oUF+hMK6TPXNW\n3CqlzGsYTdpcKHLgBiqA5/a1NFSC8N/wLLu8kSDjo99ltJ003KGn+JnKcRLg\npDKyJGzX3TvSFKlK2lA9oOnmCsoLBwdBsqaysjwK7cKZrDjxWv/kFHDNBfn0\nbdqCHfpvuarzibZBvunj0UX4xfFulspPCUN7hQxm40XxUJugfwpZlg0D7VT7\n+wnHn5IvYc4stTekLYl5rQ2R5ZDhATG03mETtmS6R7UI7KNdDXZOrEFA+HcK\nzTLmWh1KPfffpq1QBWYYgj0f1mNmqKLbYgJwJu6IadrJaWwZ8VaqSdJZ8pUl\nCmaV\r\n=AEaK\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIG72koX+kgt0HdV4JDmUofKqKG650qWueKrPCqdUz3ebAiEAubUNZfDozUB6WHwRavkFy3ZEEjsq9V71pzp7W+qBJ5I="
}
]
}Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:07e9db9e756601bc85dded7250425838ca31345b9fca972610c9a80a4db0d91f