bleenco / morose Goto Github PK
View Code? Open in Web Editor NEWprivate npm repository and/or proxy server for npmjs.org
Home Page: https://morose.bleenco.io
License: MIT License
private npm repository and/or proxy server for npmjs.org
Home Page: https://morose.bleenco.io
License: MIT License
We need to add support for command npm owner
(npm owner ls
, npm owner add
and npm owner rm
).
For that we need to provide the following routes:
Regarding that issue we also have to support:
npm install
need to check if a user is logged in and has required permissions.npm publish
has to save package owner and package's permissions.We need to add support for command npm dist-tag
.
Following commands has to be supported:
npm dist-tag add <pkg>@<version> [<tag>]
npm dist-tag rm <pkg> <tag>
npm dist-tag ls [pkg]
For help, see npm documentation dist-tag.
There are still a lot of missing tests:
We need to add support for command npm access
.
Following commands has to be supported:
npm access public [package]
npm access restricted [package]
npm access grant <read-only | read-write> <scope:team> [package]
npm access revoke <scope:team> [package]
npm access ls-packages [user | scope | scope:team]
npm access ls-collaborators [package [user]]
npm access edit [package]
For help, see npm documentation npm access.
We need to provide solid documentation for usage, maintenance and upgrading morose
server.
We need to provide following working routes on the server to fully support npm
cli.
We need to add support for command npm unpublish
.
Following commands has to be supported:
npm unpublish [<@scope>/]<pkg>[@<version>]
For help, see npm documentation npm unpublish.
Hi,
Is is possible to close internet connection in that way that If client of morose will try to get some package and it is not available - it won't be downloaded from npm?
Thanks in advance!
Daniel
/-/whoami
GET
get JSON request example:
{
auth: {
scope: '//registry.npmjs.org/',
token: 'dc5b1058-aa9e-4953-8193-4558f83f4c3d',
password: undefined,
username: undefined,
email: undefined,
auth: undefined,
alwaysAuth: false
},
method: 'GET',
authed: false
}
example JSON response:
{ username: 'jkuri' } // if logged in
if you are not logged in npm
itself throws an error:
npm ERR! code ENEEDAUTH
npm ERR! need auth this command requires you to be logged in.
npm ERR! need auth You need to authorize this machine using `npm adduser`
...so no request is performed.
npm verb request uri https://registry.npmjs.org/-/whoami
npm verb request no auth needed
npm info attempt registry request try #1 at 12:54:21 PM
npm verb request using bearer token for auth
npm verb request id 2dc475123102381
npm http request GET https://registry.npmjs.org/-/whoami
npm http 200 https://registry.npmjs.org/-/whoami
{ username: 'jkuri' }
npm verb headers { 'content-type': 'application/json',
npm verb headers 'content-encoding': 'gzip',
npm verb headers 'cache-control': 'max-age=300',
npm verb headers 'transfer-encoding': 'chunked',
npm verb headers 'accept-ranges': 'bytes',
npm verb headers date: 'Wed, 03 May 2017 10:54:22 GMT',
npm verb headers via: '1.1 varnish',
npm verb headers connection: 'keep-alive',
npm verb headers 'x-served-by': 'cache-fra1234-FRA',
npm verb headers 'x-cache': 'MISS',
npm verb headers 'x-cache-hits': '0',
npm verb headers 'x-timer': 'S1493808862.011301,VS0,VE6',
npm verb headers vary: 'Accept-Encoding' }
We need to add support for command npm star
.
Following commands has to be supported:
npm star [pkg]
npm unstar [pkg]
For help, see npm documentation npm star.
We need to add support for command npm stars
.
Following command has to be supported:
npm stars [user]
For help, see npm documentation npm stars.
We need to add support for command npm deprecate
.
Following command has to be supported:
npm deprecate <pkg>@<version> [<tag>]
For help, see npm documentation deprecate.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.