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 |
|---|---|---|
base64-imgEnvironment{
"local_name": "base64-img",
"alias": false,
"peer_metadata": null
} | ^1.0.4 | runtime |
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-dXMUDzf66bBIhyBRBjA8O5kl7WM7wI1JNJFFY5XqzCV4pykuHvT/3t7F3nwAhbgj88Ce7rySxCfaZ9vcb4EmnQ==",
"shasum": "267abd9ce8104487377c8f4cb8b0c0537edab33f",
"tarball": "https://registry.npmjs.org/1filecompiler/-/1filecompiler-0.0.2.tgz",
"fileCount": 11,
"unpackedSize": 6991,
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf+PDDCRA9TVsSAnZWagAAZL4P/jN/qQgUO6AHQD31283w\noSjd4W8A9g12B9cyz4N8b4eFAaw+6FJ9j8mQzNybNgxdrT70UgsbjcrV1kPO\nmjRiRSdPznf5c9kBJLvp1OBt6UA0pN15P1p19OIuA+ENozeWRr0oL5dunipU\n6OE8MPVx7RaIl4h6dSnusZfYVq84JzEiXdIJA4z1HDQMfohKv7bFNkzLdifD\n/taZ2VDxlI4s738W6Hx5doe3Epegtd+Be1TbOfekaeLmFYRqiD0Sx3F3DR4s\nEHDVgoUYy48LyWO2Ul0Krt7W3EluWyZ4CNlgug8Orea39s0s+iPE9NA0pMxb\nVqL7tbtrzc2/4tzrtrcIWfC19KXsN1YVU1kMp6GUQrcBTrWEQyPaACkznZhS\nLCURygeaSBjULHPo+WGrVUNJab3dW7JdxqolCLjcAu+4o3pg29F2+lZxvd6z\n5f2nN4NwObD3OuF08Ali0Ntb4Etb6XZcXVlVFuPhNgmLsRny1bjEz8UUbReZ\nRnGlWgOGRd5YkUzt8GWp1ZX/36ciDI3mj6FzhC3BCrDnXJSw38BGL/PPHcTP\nZ9pLhouE9+xkByAziIpHchtrb8dx/VI+vl7IZDvxa13uQkWhFvu7XEcvKqwl\nUCcfcyaypIWPrfJcs5tnZ8PLi7hdDvHnnTEDHupOK5WuYQ4kkMBlA/tmycEz\n9dc/\r\n=4Y3R\r\n-----END PGP SIGNATURE-----\r\n",
"signatures": [
{
"keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
"sig": "MEUCIQDkGREiCgYSeDteapbBh2YkU2wsfR0tMRrV1xQjK6IU+QIgV+QW5NEZkf0DhHoGSN+Stl3pZl7ECFt/9m3P7i42VQA="
}
]
}Observed since 20 Oct, 18:28 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package_version:7cbe9162aa3bbdb9c2caabaa0db9c9ef21018b96895794e28bc3b2d36cf9c7b0