Catalog npm
Back to packageRELEASE DETAILS

0.0.1

npm

1filecompiler

Compiles linked css and javascript files into one html file

Published11 Nov 2020
Direct dependencies3
Transitive dependenciesNot calculated

README

Current package documentation

1 File Compiler

What is this?

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.

Why?

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.

CAUTION

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

Installation

npm i -g 1filecompiler for CLI

npm i --save-dev 1filecompiler for API

CLI

The CLI is easy

npx 1fc input.html output.html

API

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

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 3

Native requirements
3 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
html-minifier
Environment
{
  "local_name": "html-minifier",
  "alias": false,
  "peer_metadata": null
}
^4.0.0runtime
jsdom
Environment
{
  "local_name": "jsdom",
  "alias": false,
  "peer_metadata": null
}
^16.4.0runtime
uglify-es
Environment
{
  "local_name": "uglify-es",
  "alias": false,
  "peer_metadata": null
}
^3.3.9runtime

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "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="
    }
  ]
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 18:28 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:07e9db9e756601bc85dded7250425838ca31345b9fca972610c9a80a4db0d91f

Other collected versions

0.0.826 Sept0.0.725 Sept0.0.625 Sept0.0.59 Jan0.0.49 Jan0.0.39 JanView all collected versions →