Coder Social home page Coder Social logo

cnpm / mirrors Goto Github PK

View Code? Open in Web Editor NEW
73.0 73.0 32.0 9.43 MB

‼️ ‼️ ‼️ ‼️ DEPRECATED, please use https://github.com/cnpm/cnpmcore ‼️ ‼️ ‼️ ‼️

Home Page: https://npmmirror.com/mirrors

License: Other

Makefile 1.23% JavaScript 94.63% Shell 1.10% HTML 3.03%

mirrors's Introduction

cnpm

NPM Version NPM Download NPM Quality GitHub Actions CI FOSSA Status

logo

cnpm: npm client for npmmirror.com

Requirements

Minimum Recommended
Node.js 14.18.0 LTS

Install

npm install cnpm -g

If you're in China, maybe you should install it from our China mirror:

npm install cnpm -g --registry=https://registry.npmmirror.com

Usage

Support all commands just like npm.

Sync packages from npm

cnpm sync [moduleName]

Open package document or git web url

cnpm doc [name]
cnpm doc -g [name] # open git web url directly

Build your own private registry npm cli

npm install cnpm -g

# then alias it
alias mynpm='cnpm --registry=https://registry.npm.example.com \
  --registryweb=https://npm.example.com \
  --userconfig=$HOME/.mynpmrc'

Install with original npm cli

cnpm using npminstall by default. If you don't like symlink mode for node_modules, you can change the installer to original npm. But you will lose the fastest install speed.

cnpm i --by=npm react-native

License

MIT

Contributors


fengmk2


dead-horse


semantic-release-bot


alsotang


0xflotus


weakish


gemwuu


ibigbug


qiu8310


elrrrrrrr


fossabot


popomore


xieren58


xiaohuoni

This project follows the git-contributor spec, auto updated at Wed Dec 06 2023 21:42:25 GMT+0800.

FOSSA Status

mirrors's People

Contributors

acecode avatar akatquas avatar alsotang avatar dead-horse avatar fengmk2 avatar fishbar avatar greenkeeperio-bot avatar gucong3000 avatar jacksontian avatar jiangli373 avatar killagu avatar looksgood avatar loverto avatar lucaszhu2zgf avatar lusyn avatar lxiaoixi avatar myst729 avatar popomore avatar thonatos avatar toobug avatar xiaoxiangmoe avatar yibn2008 avatar yisibl avatar zombieyang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mirrors's Issues

git-for-windows 同步有缺失

我这边写了脚本去获取git-for-windows的最新releases,发现与npm.taobao.org线上数据有差异。

download('https://api.github.com/repos/git-for-windows/git/releases/latest').then(data => {
	var latestReleases = JSON.parse(data);
	latestReleases.assets.forEach(function(asset) {
		var urlMirro = 'https://npm.taobao.org/mirrors/git-for-windows/' + latestReleases.tag_name + '/' + asset.name;
		download(urlMirro).catch(function() {
			console.error(urlMirro);
		});
	});
});

以下是无法下载的url

https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/MinGit-2.11.0-64-bit.zip
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/Git-2.11.0-32-bit.tar.bz2
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/Git-2.11.0-32-bit.exe
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/Git-2.11.0-64-bit.tar.bz2
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/MinGit-2.11.0-32-bit.zip
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/PortableGit-2.11.0-32-bit.7z.exe
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/PortableGit-2.11.0-64-bit.7z.exe
https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/Git-2.11.0-64-bit.exe

https://npm.taobao.org/mirrors/git-for-windows/v2.11.0.windows.1/

image

Support httpProxy

Currently the sync doesn't work behind a proxy. Urllib throws a connection time-out. Is it possible to enable httpProxy support just like cnpmjs.org?

app as a package

Just like cnpmjs.org dose, can merge with other apps and deploy running on the same process.

mirror node-sqlite3

node-pre-gyp http GET https://node-sqlite3.s3.amazonaws.com/Release/node_sqlite3-v2.2.4-node-v13-darwin-x64.tar.gz

upgrade old dist table

mysql> select * from dist_file where parent like '/python%' order by id desc limit 10;
+------+---------------------+---------------------+--------------+--------------+-------------------+---------+------------------------------------------+------------------------------+
| id   | gmt_create          | gmt_modified        | name         | parent       | date              | size    | sha1                                     | url                          |
+------+---------------------+---------------------+--------------+--------------+-------------------+---------+------------------------------------------+------------------------------+
| 7822 | 2014-11-07 19:07:12 | 2014-11-07 19:07:12 | wpysetup.exe | /python/wpy/ | 14-Jun-2001 01:42 |  370534 | da50f9321c83f12aeec3c1d2a36afe8e41fc1eef | dist/python/wpy/wpysetup.exe |
| 7821 | 2014-11-07 19:07:12 | 2014-11-07 19:07:12 | wpyset31.exe | /python/wpy/ | 14-Jun-2001 01:42 | 1554511 | 0ee08fc723ac63b47d6f4a3c27da339b4dd280fa | dist/python/wpy/wpyset31.exe |
| 7820 | 2014-11-07 19:07:11 | 2014-11-07 19:07:11 | wpypcsrc.tgz | /python/wpy/ | 14-Jun-2001 01:41 |  276545 | d6a476024ccd93685da6dce24b08ed74f1d5671b | dist/python/wpy/wpypcsrc.tgz |
| 7819 | 2014-11-07 19:07:11 | 2014-11-07 19:07:11 | tgz.zip      | /python/wpy/ | 14-Jun-2001 01:40 |  102532 | 5c94b03319405e8c25440b6e2f28b24d152ed117 | dist/python/wpy/tgz.zip      |
| 7818 | 2014-11-07 19:07:11 | 2014-11-07 19:07:11 | readdos.txt  | /python/wpy/ | 14-Jun-2001 01:40 |     898 | 4e16a51108494272e361f7abd46edc65fb98bbb5 | dist/python/wpy/readdos.txt  |
| 7817 | 2014-11-07 19:07:11 | 2014-11-07 19:07:11 | pyw31.zip    | /python/wpy/ | 14-Jun-2001 01:40 |  305561 | 134543739334677c5a759235078e6daa0620511a | dist/python/wpy/pyw31.zip    |
| 7816 | 2014-11-07 19:07:11 | 2014-11-07 19:07:11 | pyos2.zip    | /python/wpy/ | 14-Jun-2001 01:40 |  261445 | fc36c38c4ca6c500a848b4bf5ecce14c9157dfd7 | dist/python/wpy/pyos2.zip    |
| 7815 | 2014-11-07 19:07:10 | 2014-11-07 19:07:10 | pylib.zip    | /python/wpy/ | 14-Jun-2001 01:40 | 1159190 | 290dd126e1a528896e52075def9218ade2ffed70 | dist/python/wpy/pylib.zip    |
| 7814 | 2014-11-07 19:07:10 | 2014-11-07 19:07:10 | pydos.zip    | /python/wpy/ | 14-Jun-2001 01:39 |  479813 | 6bdafeea338050085c4e433ad6505f3ba014fb56 | dist/python/wpy/pydos.zip    |
| 7813 | 2014-11-07 19:07:10 | 2014-11-07 19:07:10 | freeze.txt   | /python/wpy/ | 14-Jun-2001 01:38 |    3152 | c53c17737c3d93ade57a088374596267b0da71db | dist/python/wpy/freeze.txt   |
+------+---------------------+---------------------+--------------+--------------+-------------------+---------+------------------------------------------+------------------------------+
10 rows in set (0.01 sec)

Mirror Request for nw.js

Description:
NW.js (previously known as node-webkit) lets you call all Node.js modules directly from DOM and enables a new way of writing applications with all Web technologies.
Source:
http://dl.nwjs.io/
Note:
Legacy versions before 0.12.3 are delivered by Apache DirectoryIndex, and modern versions are deployed on Amazon S3 (https://nwjs.s3-us-west-2.amazonaws.com/).
There is no HTTPS or signatures to trust the synchronized files. Amazon S3 can be accessed via HTTPS though.
I have written a project evshiron/nwjs-mirror to synchronize both Apache DirectoryIndex and Amazon S3 files. Maybe it can be used as a reference.

Why?
Because electron is mirrored. People who develop nw.js applications from China mainland should like this, too.

I could do the job and send a PR if there is a need.

download size wrong..

[dist_sync_info] [2015-01-15 20:29:18.706][848] download https://iojs.org/dist/v1.0.0/iojs-v1.0.0-darwin-x64.tar.gz got status 200, headers: {"server":"nginx/1.4.6 (Ubuntu)","date":"Thu, 15 Jan 2015 12:25:43 GMT","content-type":"application/x-gzip","content-length":"6453498","last-modified":"Wed, 14 Jan 2015 03:16:41 GMT","connection":"keep-alive","etag":""54b5df99-6278fa"","strict-transport-security":"max-age=63072000","x-frame-options":"DENY","x-content-type-options":"nosniff","accept-ranges":"bytes"}

[dist_sync_info] [2015-01-15 20:29:18.712][848] uploading /tmp/mirrors_download/848_iojs_v1.0.0_iojs-v1.0.0-darwin-x64.tar.gz to nfs:/dist/iojs/v1.0.0/iojs-v1.0.0-darwin-x64.tar.g

[dist_sync_info] [2015-01-15 20:29:18.844][848] upload /dist/iojs/v1.0.0/iojs-v1.0.0-darwin-x64.tar.gz to nfs:http://oss.npm.taobao.org/dist/iojs/v1.0.0/iojs-v1.0.0-darwin-x64.tar.gz with size:NaN, sha1:32af06715b7132bd9e7a908d796a4114ab9b6b12, md5: e1470c66629aaddb94ca62c228e947a2

[dist_sync_info] [2015-01-15 20:29:18.844][848] Sync dist file: {"name":"iojs-v1.0.0-darwin-x64.tar.gz","date":"14-Jan-2015 03:16","size":769685,"type":"file","parent":"/v1.0.0/","url":"http://oss.npm.taobao.org/dist/iojs/v1.0.0/iojs-v1.0.0-darwin-x64.tar.gz","sha1":"32af06715b7132bd9e7a908d796a4114ab9b6b12","md5":"e1470c66629aaddb94ca62c228e947a2","category":"iojs"} done

ignore electron too large zip

[2015-12-01 19:35:56.559][21494] [electron] uploading /data/mirrors_download/21494_electron_0.35.2_electron-v0.35.2-darwin-x64-dsym.zip to nfs:/dist/electron/0.35.2/electron-v0.35.2-darwin-x64-dsym.zip
[2015-12-01 19:38:52.557][21494] Start sync task for electron
[2015-12-01 19:38:53.317][21494] [electron] sync https://github.com/atom/electron/releases:/#0 got 10 new items, 10 dirs, 0 files to sync
[2015-12-01 19:38:53.907][21494] [electron] sync https://github.com/atom/electron/releases:/0.35.2/#1 got 16 new items, 0 dirs, 16 files to sync
[2015-12-01 19:38:53.907][21494] [electron] downloading 313.29MB https://github.com/atom/electron/releases/download/v0.35.2/electron-v0.35.2-darwin-x64-dsym.zip to /data/mirrors_download/21494_electron_0.35.2_electron-v0.35.2-darwin-x64-dsym.zip

mirror imagemin series

imagemin的二进制包都从github下载,经常挂掉,能不能支持对应镜像?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.