Hello. I decided here to create and publish a package for node.js. I read a couple of articles on package design, gave the command "npm init" and rushed. I wrote the code, wrote README.md, saved everything on gitlab, made "npm publish" and .. was not impressed.
How does everyone get the contents of README.md "attach" as documentation on the package page (for example: https: //www.npmjs.com/package/express-session), but I got something like this: https: // www. npmjs.com/package/express-sticky-cluster
Package.json content:
{ "author": { "name": "Valeriy V. Pushkar", "email": "" }, "bugs": { "url": "https ://github.com/kainpl/express-sticky-cluster/issues" }, "dependencies": { "http-proxy": "*", "merge": "*", "cookie": "*" }, "description": "Sticky session balancer based on a cluster and node-http-proxy modules, with express and socket.io support", "devDependencies": {}, "directories": {}, "dist": { "shasum": "671d155887bf4b6b3055989ef65b077c022df890", "tarball": "https ://registry.npmjs.org/express-sticky-cluster/-/express-sticky-cluster-0.0.1.tgz" }, "gitHead": "066bc4d03d2d058ff534be1949120a41d0507464", "homepage": "https ://github.com/kainpl/express-sticky-cluster#readme", "keywords": [ "express.js", "cluster", "http-proxy", "socket.io", "sticky-cluster", "sticky-sessions" ], "license": "MIT", "main": "index.js", "maintainers": [ { "name": "kain_pl", "email": "" } ], "name": "express-sticky-cluster", "optionalDependencies": {}, "readme": "https ://github.com/kainpl/express-sticky-cluster#readme", "repository": { "type": "git", "url": "git+https ://github.com/kainpl/express-sticky-cluster.git" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "version": "0.1.1" }