From c8c83627615b8a20d21c4f7592430209a1eef554 Mon Sep 17 00:00:00 2001 From: tawseef Date: Mon, 23 Aug 2021 19:52:26 +0530 Subject: [PATCH] basic set up --- .gitignore | 5 +++++ .npmignore | 0 LICENSE | 21 ++++++++++++++++++++ package-lock.json | 34 ++++++++++++++++++++++++++++++++ package.json | 50 ++++++++++++++++++++++++++++++++++++++++------- test.js | 0 6 files changed, 103 insertions(+), 7 deletions(-) create mode 100644 .gitignore create mode 100644 .npmignore create mode 100644 LICENSE create mode 100644 package-lock.json create mode 100644 test.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9a39b9a --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# NPM # +########## +# Ignore all directories called node_modules in current folder and any subfolders. +node_modules/ +/node_modules/ diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..cb0d9e7 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2021 Tawseef Nabi + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b9a99bd --- /dev/null +++ b/package-lock.json @@ -0,0 +1,34 @@ +{ + "name": "pdf-node", + "version": "1.0.0", + "lockfileVersion": 2, + "requires": true, + "packages": { + "": { + "name": "pdf-node", + "version": "1.0.0", + "license": "MIT", + "dependencies": { + "prettier": "^2.3.2" + } + }, + "node_modules/prettier": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", + "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==", + "bin": { + "prettier": "bin-prettier.js" + }, + "engines": { + "node": ">=10.13.0" + } + } + }, + "dependencies": { + "prettier": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-2.3.2.tgz", + "integrity": "sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==" + } + } +} diff --git a/package.json b/package.json index 281ce7e..6fe10af 100644 --- a/package.json +++ b/package.json @@ -4,16 +4,52 @@ "description": "A JavaScript PDF generation library for NodeJs", "main": "index.js", "scripts": { - "test": "node test.js" + "start": "node index.js", + "test": "node test.js", + "format": "prettier --write \"./**/*.{js,json}\"" }, "keywords": [ "pdf", - "pdf-generator", - "pdf4node", - "node", - "pdf", - "generator" + "generator", + "node pdf generator", + "html2pdf", + "htmltopdf", + "Pdf generator", + "node pdf", + "npm node pdf", + "pdf node", + "node pdf parser", + "node pdf npm", + "node pdf generator from html", + "node pdf generator", + "node js api pdf", + "node pdf converter", + "node pdf create", + "node pdf export", + "node express pdf", + "node pdf from html", + "node fs pdf", + "node generate pdf from html", + "node generate pdf report", + "node get pdf file", + "node js pdf generation", + "node js pdf generator module", + "node pdf html", + "pdf in node js", + "node pdf js", + "node" ], + "repository": { + "type": "git", + "url": "git+https://github.com/tawseefnabi/pdf-node.git" + }, + "bugs": { + "url": "https://github.com/tawseefnabi/pdf-node/issues" + }, + "homepage": "https://github.com/tawseefnabi/pdf-node#readme", "author": "tawseef (https://twitter.com/NabiTowseef)", - "license": "MIT" + "license": "MIT", + "dependencies": { + "prettier": "^2.3.2" + } } diff --git a/test.js b/test.js new file mode 100644 index 0000000..e69de29