open-index/open-npm huggingface dataset:
npm package: @hkk12369/file-cache
Description: File Based Cache for Node.js
Author: Hitesh Khandelwal
Latest version: 0.2.0

## file-cache
File Based Cache for Node.js

## Install
```sh
npm install @hkk12369/file-cache
# OR
yarn add @hkk12369/file-cache
```

## Usage
```js
const {FileCache} = require('@hkk12369/file-cache');

// set cache directory
FileCache.setCacheDir('./cache');

const cache = new FileCache('api');
// set any key
await cache.set('key', 'value', {ttl: '1d'});
// get key
await cache.get('key');
// delete key
await cache.del('key');
// get key or set if not exists
await cache.getOrSet('key', async () => {
    return 'value';
}, {ttl: '1d'});
// get stale key and set in background if stale
await cache.getOrSet('key', async () => {
    return 'value';
}, {ttl: '30d', staleTTL: '1d'});
```
npm package: @hkloudou/vant
Description: Mobile UI Components built on Vue
Author: youzanfe
Latest version: 2.5.7

<p align="center">
    <img alt="logo" src="https://img.yzcdn.cn/vant/logo.png" width="120" height="120" style="margin-bottom: 10px;">
</p>

<h3 align="center" style="margin: 30px 0 35px;">Mobile UI Components built on Vue</h3>

<p align="center">
    <img src="https://img.shields.io/npm/v/vant.svg?style=for-the-badge" alt="npm version" />
    <img src="https://img.shields.io/github/workflow/status/youzan/vant/CI/dev?style=for-the-badge" alt="npm version" />
    <img src="https://img.shields.io/codecov/c/github/youzan/vant/dev.svg?style=for-the-badge&color=#4fc08d" alt="Coverage Status" />
    <img src="https://img.shields.io/npm/dm/vant.svg?style=for-the-badge&color=#4fc08d" alt="downloads" />
    <img src="https://img.badgesize.io/https://unpkg.com/vant/lib/vant.min.js?compression=gzip&style=for-the-badge&label=gzip%20size&color=#4fc08d" alt="Gzip Size" />
</p>

<p align="center">
  🔥 <a href="https://youzan.github.io/vant">文档网站</a>
  &nbsp;
  🇨🇳 <a href="./README.zh-CN.md">中文版介绍</a>
  &nbsp;
  🚀 <a href="https://github.com/youzan/vant-weapp" target="_blank">小程序版</a>
</p>

---

## Features

* 60+ Reusable components
* 90% Unit test coverage
* Extensive documentation and demos
* Support [babel-plugin-import](https://github.com/ant-design/babel-plugin-import)
* Support Custom Theme
* Support i18n
* Support TS
* Support SSR

## Install

```bash
# Using npm
npm i vant -S

# Using yarn
yarn add vant
```

## Quickstart

```js
import Vue from 'vue';
import { Button } from 'vant';
import 'vant/lib/index.css';

Vue.use(Button);
```

See more in [Quickstart](https://youzan.github.io/vant#/en-US/quickstart).

## Contribution

Please make sure to read the [Contributing Guide](./.github/CONTRIBUTING.md) before making a pull request.

## Browser Support

Modern browsers and Android 4.0+, iOS 8.0+.

## Ecosystem

| Project | Description |
|-----|------|
| [vant-demo](https://github.com/youzan/vant-demo) | Official vant demo collection |
| [vant-weapp](https://github.com/youzan/vant-weapp) | WeChat MiniProgram UI  |
| [vant-cli](https://github.com/youzan/vant/tree/dev/packages/vant-cli) | Scaffold for UI library |
| [vant-icons](https://github.com/youzan/vant/tree/dev/packages/vant-icons) | Vant icons |
| [vant-touch-emulator](https://github.com/youzan/vant/tree/dev/packages/vant-touch-emulator) | Using vant in desktop browsers |

## Links

* [Documentation](https://youzan.github.io/vant)
* [Changelog](https://youzan.github.io/vant#/en-US/changelog)

## Preview

You can scan the following QR code to access the demo：

<img src="https://img.yzcdn.cn/vant/preview_qrcode_20180528.png" width="220" height="220" >

## Wechat Group

Scan the qrcode to join our wechat discussion group, please note that you want to join Vant discussion group.

<img src="https://img.yzcdn.cn/vant/wechat_20180606.png" width="220" height="292" >

## LICENSE

[MIT](https://en.wikipedia.org/wiki/MIT_License)
npm package: @hkraftno/ui-vue
Description: Component library for HK web apps.
Author: Haugaland Kraft Energi AS
Latest version: 0.11.17

# HK UI Vue

Component library for HK web apps.

## Recommended IDE Setup

[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).

## Type Support for `.vue` Imports in TS

TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.

If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:

1. Disable the built-in TypeScript Extension
    1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
    2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.

## Customize configuration

See [Vite Configuration Reference](https://vitejs.dev/config/).

## Project Setup

```sh
make install
```

### Compile and Hot-Reload for Storybook Development

```sh
make dev
```

# Release

## Storybook site

Pushes to main branch triggers github action to deploy new storybook site to [static.hkraft.no/hk-ui-vue](https://console.cloud.google.com/storage/browser/static.hkraft.no/hk-ui-vue?project=hkraft-prod-com-089eacdc)

-   Uses gcp service account to authenticate for file upload

## Automatic package versions

-   Use commit message format defined [here](https://github.com/angular/angular/blob/main/CONTRIBUTING.md#-commit-message-format) to automatically trigger new package builds
-   Authenticates to github package registry with [personal access token](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-to-github-packages). Token should have no expiry, but is easy to replace in repository action secrets if it stops working. Required scope is `write:packages` (will include `repo` and `read:packages` scopes by default). Because we want to pick up new tags created by semantic release to trigger an action to publish a new version of our package to the github package registry we can not use GITHUB_TOKEN for authentication as this will prevent us from triggering a second workflow.

## Publish package

-   If a new tag is created by semantic release, a new version of our ui-package can be published to [@hraftno/ui-vue](https://github.com/hkraftno/hk-ui-vue/pkgs/npm/ui-vue)
-   Requires authentication with github package registry with a personal access token

```sh
make publish
```