Skip to content

Commit

Permalink
Merge pull request #8 from Kibibit/release/first-major
Browse files Browse the repository at this point in the history
Release: first major
  • Loading branch information
thatkookooguy authored Dec 25, 2019
2 parents f300fa5 + 374cd0e commit c260629
Show file tree
Hide file tree
Showing 2 changed files with 87 additions and 7 deletions.
86 changes: 83 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,87 @@
</p>
<hr>

<!-- GENERAL DESCRIPTION IF NEEDED -->
GENERAL DESCRIPTION IF NEEDED
## how to use

<div>Icons made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
### Installation

```bash
$ npm install --save @kibibit/kb-hologram
```

### Usage

```javascript
import { SvgMaker, SvgMakerResultType } from '@kibibit/kb-hologram';

const svgMaker = new SvgMaker({
fontName: '../Comfortaa-Regular.ttf',
templateName: 'changelog-template',
height: 534 * 2,
width: 1069 * 2,
data: {
columnOne: [
'Compact folders in Explorer',
'Edit both files in diff view',
'Search results update while typing',
'Problems panel filtering by type',
'Minimap highlights errors, changes',
'Terminal minimum contrast ratio'
],
columnTwo: [
'Mirror cursor in HTML tags',
'Optional chaining support in JS\\TS',
'Extract to interface TS refactoring',
'Sass module support for @use',
'Remote - Containers improvements',
'Visual Studio Online preview'
],
title: 'achievibit',
subtitle: 'v2.1.4 - CHANGELOG',
logo: {
url: 'data:image/png;base64,<icon-data>',
alt: 'kibibit'
}
},
type: 'html'
});

const pngBuffer = await svgMaker
.render(SvgMakerResultType.PngBuffer);
```

### Test

```bash
# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov
```

## Stay in touch

- Author - [Neil Kalman](https://github.com/thatkookooguy)

## Contributors

Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for [contributing](CONTRIBUTING.MD).

You can check out some easy to start with issues in the [Easy Pick](https://github.com/Kibibit/kb-hologram/labels/Easy%20Pick).

## Contributor Code of Conduct
Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md).

By participating in this project you agree to abide by its terms.

## License

[MIT License](LICENSE)

Copyright (c) 2020 Neil Kalman &lt;[email protected]&gt;

<div>Module Icon made by <a href="https://www.flaticon.com/authors/freepik" title="Freepik">Freepik</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kibibit/kb-hologram",
"version": "0.0.0-development",
"version": "1.0.0-next.1",
"description": "create images from templates and data",
"types": "lib/image-maker.d.ts",
"main": "lib/image-maker.js",
Expand All @@ -26,14 +26,14 @@
},
"repository": {
"type": "git",
"url": "https://github.com/Kibibit/project-template.git"
"url": "https://github.com/Kibibit/kb-hologram.git"
},
"author": "",
"license": "ISC",
"bugs": {
"url": "https://github.com/Kibibit/project-template/issues"
"url": "https://github.com/Kibibit/kb-hologram/issues"
},
"homepage": "https://github.com/Kibibit/project-template#readme",
"homepage": "https://github.com/Kibibit/kb-hologram#readme",
"dependencies": {
"class-transformer": "^0.2.3",
"class-validator": "^0.11.0",
Expand Down

0 comments on commit c260629

Please sign in to comment.