open-index/open-npm huggingface dataset:
npm package: @iceworks/logger
Description: Logger for Iceworks
Latest version: 0.1.0

# Logger for Iceworks

## Usage

```ts
import getLogger from '@iceworks/logger';

const logger = getLogger('TimeMaster');
logger.info('xxx'); // log will save to disk: `~/.iceworks/logs/TimeMaster.log`
```

See: https://www.npmjs.com/package/egg-logger
npm package: @iceworks/npm-utils
Description: npm utils for iceworks
Latest version: 0.1.1

# @iceworks/npm-utils

some utils for ice.

## Installation

```bash
$ npm install @iceworks/npm-utils --save
```

## Basic Usage

```js
import { getNpmLatestSemverVersion } from 'ice-npm-utils';
```

## API

### getNpmRegistry(npmName)

Default return `https://registry.npm.taobao.org`

### getUnpkgHost(npmName)

Default return `https://unpkg.com`

### getNpmLatestSemverVersion(npmName, baseVersion)

Return `Promise.resolve(version)`

### getLatestVersion(npmName)

Return `Promise.resolve(version)`

### getNpmInfo(npmName)

Return `Promise.resolve(response.data)`

### getNpmClient(npmName)

Default return `npm`

### checkAliInternal()

Return `Promise.resolve(isInternal)`

### getNpmTarball(name, version)

Return `Promise.resolve(tarball)`

### getAndExtractTarball(destDir, tarball, progressFunc: () => {})

Return `Promise.resolve(allFiles: string[])`

## Custom

### Custom Npm Registry

```
process.env.REGISTRY=https://registry.npmjs.org
```

### Custom Unpkg Host

```
process.env.UNPKG=https://unpkg.com
```

### Custom Npm Client

```
process.env.NPM_CLIENT=cnpm
```