# grunt-hjson

> Convert Hjson and JSON for grunt

Latest version **2.4.3** (published 2017-06-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-hjson
pnpm add grunt-hjson
yarn add grunt-hjson
bun add grunt-hjson
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.4.3 |
| Published | 2017-06-20 |
| First published | 2014-12-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Christian Zangl |
| Maintainers | laktak |
| Keywords | gruntplugin, hjson, json, config, comments, parser, serializer, human |

## Links

- npm: https://www.npmjs.com/package/grunt-hjson
- Repository: https://github.com/hjson/grunt-hjson
- Homepage: http://hjson.org
- Issues: https://github.com/hjson/grunt-hjson/issues
- npm.io page: https://npm.io/package/grunt-hjson

## Dependencies (2)

- [async](https://npm.io/package/async.md) ^2.0.1
- [hjson](https://npm.io/package/hjson.md) ^2.4.3

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 2.4.3 (latest) — 2017-06-20
- 2.0.3 — 2016-08-08
- 1.8.0 — 2016-04-13
- 1.7.4 — 2015-08-23
- 1.7.3 — 2015-05-27
- 1.6.2 — 2015-03-16
- 1.6.1 — 2015-02-20
- 1.5.0 — 2015-01-12
- 1.4.0 — 2015-01-09
- 1.1.0 — 2015-01-07
- 1.0.0 — 2014-12-03

## README

# grunt-hjson

[![Build Status](https://img.shields.io/travis/hjson/grunt-hjson.svg?style=flat-square)](http://travis-ci.org/hjson/grunt-hjson)
[![NPM version](https://img.shields.io/npm/v/grunt-hjson.svg?style=flat-square)](http://www.npmjs.com/package/grunt-hjson)

Hjson plugin for grunt, converts from and to JSON.

[Hjson](http://hjson.org), the Human JSON. A configuration file format for humans. Relaxed syntax, fewer mistakes, more comments.

For details and syntax see [hjson.org](http://hjson.org).

## Usage

First, install `grunt-hjson` as a development dependency:

```shell
npm install --save-dev grunt-hjson
```

Then, add it to your `gruntfile.js`:

```javascript
module.exports = function(grunt) {

  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    hjson: {
      cvt: {
        files: [
          {
            expand: true,
            cwd: 'src/',
            src: ['*.hjson'],
            dest: 'dist/',
            ext: '.json',
          },
        ],
      }
    }
  });

  grunt.loadNpmTasks('grunt-hjson');

  grunt.registerTask('default', ['hjson']);
};
```

To convert to Hjson specify the `.hjson` extension in `ext`.

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