# boxit

> HTML and text file builder / collator

Latest version **0.4.4** (published 2014-06-18) · MIT license · 0 weekly downloads

## Install

```sh
npm install boxit
pnpm add boxit
yarn add boxit
bun add boxit
```

Provides the command `boxit`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.4.4 |
| Published | 2014-06-18 |
| First published | 2012-02-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 12 |
| Known vulnerabilities | 0 (+15 in 4 direct dependencies) |
| Install scripts | no |
| GitHub stars | 7 |
| Author | Damon Oehlman |
| Maintainers | damonoehlman |
| Keywords | build, html |

## Links

- npm: https://www.npmjs.com/package/boxit
- Repository: https://github.com/DamonOehlman/boxit
- Issues: http://github.com/DamonOehlman/boxit/issues
- npm.io page: https://npm.io/package/boxit

## Dependencies (12)

- [out](https://npm.io/package/out.md) ~0.5.0
- [async](https://npm.io/package/async.md) ~0.9
- [debug](https://npm.io/package/debug.md) ^1
- [getit](https://npm.io/package/getit.md) ~0.4
- [findit](https://npm.io/package/findit.md) ^1
- [marked](https://npm.io/package/marked.md) ~0.3
- [mkdirp](https://npm.io/package/mkdirp.md) ~0.5
- [rimraf](https://npm.io/package/rimraf.md) ^2
- [manifest](https://npm.io/package/manifest.md) ~0.1
- [handlebars](https://npm.io/package/handlebars.md) ^1
- [scaffolder](https://npm.io/package/scaffolder.md) ~0.9
- [underscore](https://npm.io/package/underscore.md) ^1

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.4.4 (latest) — 2014-06-18
- 0.4.3 — 2014-06-18
- 0.4.2 — 2013-08-21
- 0.4.1 — 2013-08-21
- 0.3.2 — 2012-08-29
- 0.3.1 — 2012-05-28
- 0.3.0 — 2012-05-17
- 0.2.2 — 2012-05-16
- 0.2.1 — 2012-05-04
- 0.2.0 — 2012-05-02
- 0.1.7 — 2012-04-18
- 0.1.6 — 2012-02-24

## README

# Boxit

BoxIt is a command-line tool designed to make compiling a single HTML page
(or even plain text) from multiple snippets locally a lot simpler.


[![NPM](https://nodei.co/npm/boxit.png)](https://nodei.co/npm/boxit/)

[![Build Status](https://img.shields.io/travis/DamonOehlman/boxit.svg?branch=master)](https://travis-ci.org/DamonOehlman/boxit) [![stable](https://img.shields.io/badge/stability-stable-green.svg)](https://github.com/dominictarr/stability#stable) 

## Why Boxit?

This project was created as a follow-up project to
[deckem](https://github.com/DamonOehlman/deckem) which I started as to
help with creating [deck.js](https://github.com/imakewebthings/deck.js)
presentations.  Deckem wasn't really the right solution though, as it was
too narrow in it's focus.

By comparison, Boxit is __incredibly flexible__ and allows you to use
both __local and remote__ resources to create static local files
(suitable for offline bundling).

Creating a deck.js presentation is one potential use, but it could just
as easily be used to assist with collating multiple HTML sections of a
single page mobile app, or even possibly creating a CSV file.  

## Getting Started

The first thing you need to do is to create a configuration file that
defines your project file that instructs BoxIt how to behave.  A reference
example has been[created in this repository](examples/deck.js) and the
json configuration file from that example is shown below:

```json
{
    "title": "Test Presentation",
    "template": "github://DamonOehlman/packing-instructions/deck.js",
    "sources": [
        "files/file1.html",
        "files/file2.md",
        "files/file3.jade",
        "files/subdir/"
    ]
}
```

This config file is parsed and converted into a html file (by default) with
the same name as the json file.  For instance, this example file is
[presentation.json](/examples/deck.js/presentation.json) so would be
converted to [presentation.html](examples/deck.js/output/presentation.html).

## How it works

### File Loading

To be completed.

### Template Parsing

To be completed.

## Defining a Template

To be completed, but take a look at the
[packing instructions](/DamonOehlman/packing-instructions) repository for
some examples.  Essentially, you have a `json` file that defines the
template and an accompanying [handlebars](http://handlebarsjs.com/) template
file that source files are passed through.

## Reference

### Boxer(opts)

### Boxer.findConfig(target)

### Boxer.isValidData(data)

### Boxer._createProcessors(configFiles)

## License(s)

### MIT

Copyright (c) 2014 Damon Oehlman <damon.oehlman@gmail.com>

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---
_Source: https://npm.io/package/boxit · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
