Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
typescript
json2html
Commits
a6d7fd59
Commit
a6d7fd59
authored
Oct 14, 2020
by
Zéfling
🎨
Browse files
Fix Readnme
parent
6f63cae1
Changes
1
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
a6d7fd59
[

](https://badge.fury.io/js/json2html
-lib
)
[

](https://www.npmjs.com/package/json2html
-lib
)
[

](https://git.ikilote.net/angular/json2html/raw/master/LICENSE)
[

](https://badge.fury.io/js/
@zaide/
json2html)
[

](https://www.npmjs.com/package/
@zaide/
json2html)
[

](https://git.ikilote.net/angular/json2html/raw/master/LICENSE)
# json2html
## Installation
```
npm i json2html
-lib
--save
npm i
@zaide/
json2html --save
```
## Requirements
...
...
@@ -22,13 +22,19 @@ Only for demo:
### Examples
```
typescript
import
{
Json2html
}
from
'
json2html
'
;
const
color
=
new
Json2html
(
'
red
'
);
color
.
changeLuminosity
(
0.55
);
console
.
log
(
color
.
toHEX
());
// #ff8c8c
```
import
{
Json2html
}
from
'
@zaide/json2html
'
;
console
.
log
(
new
Json2html
({
tag
:
'
div
'
,
attrs
:
{
id
:
'
test1
'
,
class
:
'
testclasse
'
},
body
:
[
'
test
'
,
{
tag
:
'
div
'
,
attrs
:
{
id
:
'
test2
'
,
class
:
'
foobar
'
},
body
:
'
test
'
}
]
},
{
formatting
:
'
inline
'
}).
toString
());
```
## Publishing the library
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment