Commit a6d7fd59 authored by Zéfling's avatar Zéfling 🎨
Browse files

Fix Readnme

parent 6f63cae1
[![npm version](https://badge.fury.io/js/json2html-lib.svg)](https://badge.fury.io/js/json2html-lib) [![Downloads](https://img.shields.io/npm/dm/json2html-lib.svg)](https://www.npmjs.com/package/json2html-lib) [![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://git.ikilote.net/angular/json2html/raw/master/LICENSE) [![npm version](https://badge.fury.io/js/@zaide/json2html.svg)](https://badge.fury.io/js/@zaide/json2html) [![Downloads](https://img.shields.io/npm/dm/@zaide/json2html.svg)](https://www.npmjs.com/package/@zaide/json2html) [![MIT license](https://img.shields.io/badge/license-MIT-blue.svg)](https://git.ikilote.net/angular/json2html/raw/master/LICENSE)
# json2html # json2html
## Installation ## Installation
``` ```
npm i json2html-lib --save npm i @zaide/json2html --save
``` ```
## Requirements ## Requirements
...@@ -22,13 +22,19 @@ Only for demo: ...@@ -22,13 +22,19 @@ Only for demo:
### Examples ### Examples
```typescript ```typescript
import {Json2html} from 'json2html'; import { Json2html } from '@zaide/json2html';
const color = new Json2html('red'); console.log(new Json2html({
color.changeLuminosity(0.55); tag: 'div',
console.log(color.toHEX()); // #ff8c8c attrs: { id: 'test1', class: 'testclasse' },
``` body: ['test',
{
tag: 'div',
attrs: { id: 'test2', class: 'foobar' },
body: 'test'
}
]
}, { formatting: 'inline' }).toString());
``` ```
## Publishing the library ## Publishing the library
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment