UNPKG
json-poster
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.9
1.0.8
1.0.5
1.0.4
1.0.2
1.0.1
1.0.0
Generate posters by configuring json
www.npmjs.com/package/json-poster
panxuesen/json-poster
json-poster
/
src
/
test.ts
6 lines
(5 loc)
•
162 B
text/typescript
View Raw
1
2
3
4
5
6
import
{ posterDatas }
from
'./demoData'
;
import
{ createPoster }
from
'./index'
;
createPoster
(posterDatas[
1
]).
then
(
image
=>
{ image.
toFile
(
'./test.png'
); })