1.0.0 • Published 4 years ago

@feizheng/next-node-downfile v1.0.0

Weekly downloads
3
License
MIT
Repository
-
Last release
4 years ago

next-node-downfile

Download file for next.

version license size download

npm publish failed

npm notice 📦  @feizheng/next-node-download@1.0.0
npm notice === Tarball Contents === 
npm notice 1.2kB dist/next-node-downfile.js    
npm notice 718B  dist/next-node-downfile.min.js
npm notice 1.2kB package.json                  
npm notice 1.3kB dist/next-node-downfile.js.map
npm notice 979B  README.md                     
npm notice 1.1kB LICENSE.txt                   
npm notice === Tarball Details === 
npm notice name:          @feizheng/next-node-downfile            
npm notice version:       1.0.0                                   
npm notice package size:  2.7 kB                                  
npm notice unpacked size: 6.4 kB                                  
npm notice shasum:        254df1d7b6991b8bd61713049a00fff78b5c0409
npm notice integrity:     sha512-ZZZY21VS6hQ18[...]NutR8/d5U1T6g==
npm notice total files:   6                                       
npm notice 
npm ERR! code E400
npm ERR! 400 Bad Request - PUT https://registry.npmjs.org/@feizheng%2fnext-node-downfile - That word is not allowed. Please contact support (support@npmjs.com) if you believe you received this in error.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/feizheng/.npm/_logs/2020-02-18T03_45_54_439Z-debug.log

reason

Due to spam mitigation, the word download is no longer allowed to be used in a package name. We recommend choosing a new package name without the download word.

usage

import '@feizheng/next-node-downfile';

const filename = '__tests__/master.zip';
nx.nodeDownload({
  url: 'https://github.com/afeiship/boilerplate-book-notes/archive/master.zip',
  filename,
  agent: new HttpsProxyAgent('http://127.0.0.1:9090')
}).then((res) => {
  expect(fs.existsSync(filename)).toBe(true);
  done();
});

resources

license

Code released under the MIT license.

1.0.0

4 years ago

1.1.0

4 years ago