All Projects → stackhtml → documentify

stackhtml / documentify

Licence: MIT license
Modular HTML bundler

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to documentify

Bankai
🚉 - friendly web compiler
Stars: ✭ 1,064 (+2163.83%)
Mutual labels:  modular, compile
Escape From Callback Mountain
Example Project & Guide for mastering Promises in Node/JavaScript. Feat. proposed 'Functional River' pattern
Stars: ✭ 249 (+429.79%)
Mutual labels:  modular
Shaden
🎧 A modular audio synthesizer.
Stars: ✭ 175 (+272.34%)
Mutual labels:  modular
Pencil.js
✏️ Nice modular interactive 2D drawing library
Stars: ✭ 204 (+334.04%)
Mutual labels:  modular
One App
✨ a fresh, modular take on web application development
Stars: ✭ 181 (+285.11%)
Mutual labels:  modular
Xflegoviper
🚀 A seamless framework for build app from MVC, MVVM, VIPER (etc.) design pattern in iOS world. (OC & Swift)
Stars: ✭ 215 (+357.45%)
Mutual labels:  modular
Spaceace
A fancy immutable storage library for JavaScript
Stars: ✭ 167 (+255.32%)
Mutual labels:  modular
slopShell
the only php webshell you need.
Stars: ✭ 208 (+342.55%)
Mutual labels:  modular
Golog
A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.
Stars: ✭ 208 (+342.55%)
Mutual labels:  modular
Ios Nbuimagepicker
Modular image picker with Simulator-compatible AVFondation camera, assets library, filters and more.
Stars: ✭ 196 (+317.02%)
Mutual labels:  modular
Elli
Simple, robust and performant Erlang web server
Stars: ✭ 194 (+312.77%)
Mutual labels:  modular
Red Discordbot
A multi-function Discord bot
Stars: ✭ 2,855 (+5974.47%)
Mutual labels:  modular
Digital Restaurant
DDD. Event sourcing. CQRS. REST. Modular. Microservices. Kotlin. Spring. Axon platform. Apache Kafka. RabbitMQ
Stars: ✭ 222 (+372.34%)
Mutual labels:  modular
Mollenos
MollenOS/Vali is a modern operating system that is built with focus on abstraction and a modular design, allowing anyone to port it to any architecture. It currently targets the x86-32 and x86-64 platform.
Stars: ✭ 182 (+287.23%)
Mutual labels:  modular
xconfigure
High-Performance configuration patterns and recipes.
Stars: ✭ 42 (-10.64%)
Mutual labels:  compile
Oxide
Old repository for the Oxide mod. See individual repositories for updates
Stars: ✭ 173 (+268.09%)
Mutual labels:  modular
Projectalice
Main repository of Project Alice, contains main unit source code
Stars: ✭ 189 (+302.13%)
Mutual labels:  modular
Litegraph.js
A graph node engine and editor written in Javascript similar to PD or UDK Blueprints, comes with its own editor in HTML5 Canvas2D. The engine can run client side or server side using Node. It allows to export graphs as JSONs to be included in applications independently.
Stars: ✭ 2,735 (+5719.15%)
Mutual labels:  modular
mSAT
A modular sat/smt solver with proof output.
Stars: ✭ 91 (+93.62%)
Mutual labels:  modular
grakkit
A modern JavaScript development environment for Minecraft.
Stars: ✭ 184 (+291.49%)
Mutual labels:  modular

documentify stability

npm version build status downloads js-standard-style

Modular HTML bundler.

Usage

  $ documentify [entry-file] [options]

  Options:

    -h, --help        print usage
    -v, --version     print version

  Examples:

    Start bundling HTML
    $ documentify .

    Bundle HTML from a stream
    $ cat index.html | documentify

  Running into trouble? Feel free to file an issue:
  https://github.com/stackhtml/documentify/issues/new

  Do you enjoy using this software? Become a backer:
  https://opencollective.com/choo

Configuring transforms

Command Line

$ documentify ./index.html -t my-transform -t another-transform

package.json

{
  "name": "my-app",
  "version": "1.0.0",
  "private": true,
  "documentify": {
    "transform": [
      "my-transform",
      "another-transform"
    ]
  }
}

Writing transforms

A transform is a regular function that returns a through stream. The through stream can modify the HTML stream, which in turn passes data to the next stream. Together the streams form a pipeline.

var through = require('through2')

module.exports = transform

function transform (opts) {
  return through()
}

API

document = documentify(entry, [html], [opts])

Create a new documentify instance. If entry is a .html file, it'll be used as the source. If entry is falsy and html is a string or readable stream, that will be used as the input instead. Otherwise if entry is falsy and html is omitted, an empty HTML file with just a body and head will be used as the source.

document.transform(fn, [opts])

Pass a transform to the document instance

readableStream = document.bundle()

Create a new readable stream, and start flowing the html through the transforms.

See Also

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].