Skip to content

Commit

Permalink
Merge pull request #8 from rimiti/add-npm-namespace
Browse files Browse the repository at this point in the history
Add npm namespace
  • Loading branch information
rimiti authored Mar 13, 2018
2 parents 0574c27 + 7067ea6 commit 537b66d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 14 deletions.
5 changes: 1 addition & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,4 @@ typings/
.env

.idea/
/dist/invoice.html
/dist/invoice.pdf
/dist/order.pdf
/dist/order.html
dist/
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want some examples, check tests.

## Install
```
$ npm install invoice-it --save
$ npm install @rimiti/invoice-it --save
```

## Features
Expand All @@ -37,20 +37,20 @@ $ npm install invoice-it --save

**From import**
```javascript
import invoiceIt from 'invoice-it';
import invoiceIt from '@rimiti/invoice-it';
```

**From require**
```javascript
const invoiceIt = require('invoice-it');
const invoiceIt = require('@rimiti/invoice-it');
```

### Order

To generate an order:

```js
import invoiceIt from 'invoice-it';
import invoiceIt from '@rimiti/invoice-it';

const recipient = {
company_name: 'Receiver company',
Expand Down Expand Up @@ -138,7 +138,7 @@ order.getOrder().toPDF().toFile('./order.pdf')
To generate an invoice:

```js
import invoiceIt from 'invoice-it';
import invoiceIt from '@rimiti/invoice-it';

const recipient = {
company_name: 'Receiver company',
Expand Down Expand Up @@ -226,7 +226,7 @@ invoice.getInvoice().toPDF().toFile('./invoice.pdf')
To add more language:

```js
import invoiceIt from 'invoice-it';
import invoiceIt from '@rimiti/invoice-it';

invoiceIt.configure({
language: {
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "invoice-it",
"version": "2.0.0",
"name": "@rimiti/invoice-it",
"version": "2.2.0",
"description": "Order and invoice generator",
"license": "MIT",
"main": "dist/index.js",
Expand Down

0 comments on commit 537b66d

Please sign in to comment.