Skip to content

Commit

Permalink
Prepare package for merging back to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj committed Nov 2, 2023
1 parent 71ceb64 commit 1039872
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 67 deletions.
1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

47 changes: 7 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[![npm](https://img.shields.io/npm/v/@wojtekmaj/jotform.svg)](https://www.npmjs.com/package/@wojtekmaj/jotform) ![downloads](https://img.shields.io/npm/dt/@wojtekmaj/jotform.svg) [![CI](https://github.com/wojtekmaj/jotform/workflows/CI/badge.svg)](https://github.com/wojtekmaj/jotform/actions)
[![npm](https://img.shields.io/npm/v/jotform.svg)](https://www.npmjs.com/package/jotform) ![downloads](https://img.shields.io/npm/dt/jotform.svg) [![CI](https://github.com/jotform/jotform-api-nodejs/workflows/CI/badge.svg)](https://github.com/jotform/jotform-api-nodejs/actions)

# @wojtekmaj/jotform
# jotform

Unofficial [Jotform API](https://api.jotform.com/docs/) Node.js Client with TypeScript support.
[Jotform API](https://api.jotform.com/docs/) Node.js Client with TypeScript support.

## tl;dr

- Install by executing `npm install @wojtekmaj/jotform` or `yarn add @wojtekmaj/jotform`.
- Import by adding `import jotform from '@wojtekmaj/jotform'`.
- Install by executing `npm install jotform` or `yarn add jotform`.
- Import by adding `import jotform from 'jotform'`.
- Authenticate:
```ts
jotform.options({
Expand All @@ -29,7 +29,7 @@ You may be able to use it with Node.js 17.5.0, provided that you use `--experime

### Installation

Add @wojtekmaj/jotform to your project by executing `npm install @wojtekmaj/jotform` or `yarn add @wojtekmaj/jotform`.
Add `jotform` to your project by executing `npm install jotform` or `yarn add jotform`.

### Obtaining API key

Expand All @@ -40,7 +40,7 @@ To obtain Jotform API key, go to [API section](https://www.jotform.com/myaccount
Here's an example of basic usage:

```ts
import jotform from '@wojtekmaj/jotform';
import jotform from 'jotform';

jotform.options({
apiKey: 'YOUR_API_KEY',
Expand Down Expand Up @@ -99,39 +99,6 @@ const teamForm = await jotform.getForm('FORM_ID', { 'jf-team-id': 'YOUR_TEAM_ID'

Jotform API documentation is available at https://api.jotform.com/docs/.

## `jotform` vs `@wojtekmaj/jotform`

`@wojtekmaj/jotform` is a fork of `jotform` package. It was created to add TypeScript support, ship some long-awaited
features, add new features and fix bugs. It was rebuilt from the ground up to benefit from the latest JavaScript
features and to be more maintainable.

`@wojtekmaj/jotform` is meant to be a drop-in replacement for `jotform` package, so you can use it without any changes to your code.

Here's how the two packages compare:

| Feature | `jotform` | `@wojtekmaj/jotform` |
| ---------------------- | ------------------ | -------------------- |
| TypeScript support |||
| Jotform Teams support |||
| Tests |||
| Methods available | 36 | 50 |
| Number of dependencies | 2 | 1 |
| Bundle size | 38.3 kB (min+gzip) | 3.5 kB (min+gzip) |
| Install size | 2.35 MB | 236 kB |

## License

GNU General Public License v2.0.

## Author

<table>
<tr>
<td >
<img src="https://avatars.githubusercontent.com/u/5426427?v=4&s=128" width="64" height="64" alt="Wojciech Maj">
</td>
<td>
<a href="https://github.com/wojtekmaj">Wojciech Maj</a>
</td>
</tr>
</table>
18 changes: 10 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@wojtekmaj/jotform",
"version": "1.0.1",
"name": "jotform",
"version": "1.0.0",
"description": "Jotform API Node.js Client",
"type": "module",
"engines": {
Expand Down Expand Up @@ -35,10 +35,13 @@
"client",
"nodejs"
],
"author": {
"name": "Wojciech Maj",
"email": "kontakt@wojtekmaj.pl"
},
"author": "Jotform Team",
"contributors": [
{
"name": "Wojciech Maj",
"email": "kontakt@wojtekmaj.pl"
}
],
"license": "GPL-2.0",
"dependencies": {
"object-to-formdata": "^4.5.1"
Expand Down Expand Up @@ -68,8 +71,7 @@
],
"repository": {
"type": "git",
"url": "https://github.com/wojtekmaj/jotform.git"
"url": "https://github.com/jotform/jotform-api-nodejs.git"
},
"funding": "https://github.com/wojtekmaj/jotform?sponsor=1",
"packageManager": "yarn@4.0.0"
}
36 changes: 18 additions & 18 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -569,24 +569,6 @@ __metadata:
languageName: node
linkType: hard

"@wojtekmaj/jotform@workspace:.":
version: 0.0.0-use.local
resolution: "@wojtekmaj/jotform@workspace:."
dependencies:
"@wojtekmaj/async-array-utils": "npm:^1.8.0"
eslint: "npm:^8.26.0"
eslint-config-wojtekmaj: "npm:^0.9.0"
husky: "npm:^8.0.0"
lint-staged: "npm:^14.0.0"
object-to-formdata: "npm:^4.5.1"
prettier: "npm:^3.0.0"
rimraf: "npm:^3.0.0"
typescript: "npm:^5.0.0"
vitest: "npm:^0.34.0"
zod: "npm:^3.22.3"
languageName: unknown
linkType: soft

"abbrev@npm:^1.0.0":
version: 1.1.1
resolution: "abbrev@npm:1.1.1"
Expand Down Expand Up @@ -2149,6 +2131,24 @@ __metadata:
languageName: node
linkType: hard

"jotform@workspace:.":
version: 0.0.0-use.local
resolution: "jotform@workspace:."
dependencies:
"@wojtekmaj/async-array-utils": "npm:^1.8.0"
eslint: "npm:^8.26.0"
eslint-config-wojtekmaj: "npm:^0.9.0"
husky: "npm:^8.0.0"
lint-staged: "npm:^14.0.0"
object-to-formdata: "npm:^4.5.1"
prettier: "npm:^3.0.0"
rimraf: "npm:^3.0.0"
typescript: "npm:^5.0.0"
vitest: "npm:^0.34.0"
zod: "npm:^3.22.3"
languageName: unknown
linkType: soft

"js-sdsl@npm:^4.1.4":
version: 4.4.0
resolution: "js-sdsl@npm:4.4.0"
Expand Down

0 comments on commit 1039872

Please sign in to comment.