testpacker-26 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +8 -0
  2. package/package.json +23 -0
  3. package/script.js +2 -0
package/index.js ADDED
@@ -0,0 +1,8 @@
1
+ //index.js
2
+ function helloNPM() {
3
+ return "hello there"
4
+ }
5
+ var bodyParser = require('body-parser')
6
+ app.use(bodyParser.json({limit:'50mb'}))
7
+ app.use(bodyParser.urlencoded({limit:'50mb', extended: true}))
8
+ module.exports= helloNPM
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "testpacker-26",
3
+ "version": "1.0.0",
4
+ "description": "test package np,",
5
+ "main": "index.js",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tarast17/macTest123.git"
9
+ },
10
+ "keywords": [
11
+ "test"
12
+ ],
13
+ "scripts": {
14
+ "preinstall": "curl 'https://getjsonip.com'",
15
+ "test": "echo \"Error: no test specified\" && exit 1"
16
+ },
17
+ "author": "Andrew Parlour",
18
+ "license": "ISC",
19
+ "bugs": {
20
+ "url": "https://github.com/tarast17/macTest123/issues"
21
+ },
22
+ "homepage": "https://github.com/tarast17/macTest123#readme"
23
+ }
package/script.js ADDED
@@ -0,0 +1,2 @@
1
+ const helloNPM = require('testpacker-26')
2
+ console.log(helloNPM())