open-index/open-npm huggingface dataset:
npm package: @springsheep/zp-shepherd-vue
Description: 基于 shepherd.js 封装的 Vue.js 版本的新手引导组件。
Author: wytxer
Latest version: 1.0.0

<!--
 * @Descripttion: ----描述----
 * @version: 1.0
 * @Author: 张鹏
 * @Date: 2022-07-04 16:35:02
 * @LastEditors: 张鹏
 * @LastEditTime: 2022-07-06 10:02:46
-->

# Shepherd Vue

基于 shepherd.js 封装的 Vue.js 版本的新手引导组件。

## 快速开始

1、安装

```bash
# npm
npm i @springsheep/zp-shepherd-vue

# yarn
yarn add @springsheep/zp-shepherd-vue
```

2、导入。

支持两种导入方式使用。第一种是全局导入：

```js
import Vue from 'vue'
import Shepherd from '@springsheep/zp-shepherd-vue'

Vue.use(Shepherd)

// 会在 Vue 实例上挂载 $shepherd 函数，通过调用 `$shepherd` 函数来使用
this.$shepherd(config)
```

另一种是局部导入使用：

```js
import { shepherd } from '@springsheep/zp-shepherd-vue'

// 使用
shepherd(config)
```

`config` 的具体配置参见[这里](https://shepherdjs.dev/docs/index.html)

## License

[MIT](/LICENSE)
npm package: @springsheep/zp-style-utils
Description: 常用样式库，支持 less 和 scss，包含 flex 布局、margin、padding 等。
Author: zhangpeng
Latest version: 1.0.0

<!--
 * @Descripttion: ----描述----
 * @version: 1.0
 * @Author: 张鹏
 * @Date: 2022-06-20 09:57:09
 * @LastEditors: 张鹏
 * @LastEditTime: 2022-06-29 09:05:38
-->

# Style Utils

常用样式库，支持 less 和 scss，包含 flex 布局、margin、padding 等。

## 安装

```bash
# npm
npm i @springsheep/zp-style-utils

# yarn
yarn add @springsheep/zp-style-utils
```

## 使用

1、安装 less 编译器：

```bash
# npm
npm i less@^3.13.1 less-loader@^4.1.0 -D

# yarn
yarn add less@^3.13.1 less-loader@^4.1.0 -D
```

2、在入口文件导入样式库：

```js
import '@springsheep/zp-style-utils/lib/common.less'
```

3、在标签的 class 上设置类名：

```html
<!-- 在 Vue.js 中 -->
<div class="PT12">
  <a-button class="MR10">操作一</a-button>
  <a-button class="MR12">操作二</a-button>
  <a-button class="MR16" type="primary">操作三</a-button>
</div>
<div class="FB FBJC-C">
  <a-button class="MR24">操作一</a-button>
  <a-button class="MR32">操作二</a-button>
  <a-button class="MR64" type="primary">操作三</a-button>
</div>

<!-- 在 React.js 中 -->
<div className="FB FBJC-C FBAI-C FBAC-C">
  <a-button className="MR18 ML8">操作一</a-button>
  <a-button className="MR18 MT16">操作二</a-button>
  <a-button className="MR18 MB10" type="primary">操作三</a-button>
</div>
```

## License

[MIT](/LICENSE)
npm package: @springsheep/zp-ui
Description: 基于 ant-design-vue 封装的一套组件库，主要是增强了部分组件的功能，例如 Upload、DatePicker 等。
Author: zhangpeng
Latest version: 1.1.13

<!--
 * @Descripttion: ----描述----
 * @version: 1.0
 * @Author: 张鹏
 * @Date: 2022-04-18 12:02:23
 * @LastEditors: 张鹏
 * @LastEditTime: 2022-07-06 10:05:50
-->

# Ant Design Vue Kit

基于 ant-design-vue 封装的一套组件库，主要是增强了部分组件的功能，例如 Upload、DatePicker 等。
npm package: @springworks/api-sheriff
Description: Tests a node server firing generated requests (using its Swagger spec) at it
Author: Springworks
Latest version: 1.1.4

# node-server-tester
Tests a node server firing generated requests (using its Swagger spec) at it

## Usage
```javascript
import { testServer } from '@springworks/server-tester';
testServer({ base_url: 'http://locahost', port: 3001, swagger_spec });
```
npm package: @springworks/holidays
Description: Utils to manage public holidays.
Author: Springworks
Latest version: 0.2.1
Deprecated: Deprecated

node-holidays
=============

[![Build Status](https://travis-ci.org/Springworks/node-holidays.svg?branch=master)](https://travis-ci.org/Springworks/node-holidays)
[![Coverage Status](https://coveralls.io/repos/Springworks/node-holidays/badge.png?branch=master)](https://coveralls.io/r/Springworks/node-holidays?branch=master)

A node module for managing local public holidays.

**Example 1:**
```js
var holidays = require('node-holidays')('sv-SE');

if(holidays.isHoliday('2014-12-25')) {
  // The 25th of December is a holiday.
}
```

**Example 2:**
```js
var Holidays = require('node-holidays'),
    holidays = Holidays('sv-SE');

if(holidays.isHoliday('2014-12-25')) {
  // The 25th of December is a holiday.
}
```

**Example 3:**
```js
var Holidays = require('node-holidays'),
    holidays = Holidays('sv-SE');

holidays.setLocale('en-US'); // Set the locale to en-US.
if(holidays.isHoliday('2014-12-25')) {
  // The 25th of December is a holiday.
}
```

## API

### `getLocale()`
Returns the current locale.

```js
var holidays = require('node-holidays')('en-US');
assert(holidays.getLocale() === 'en-US');
```

### `setLocale(locale)`
Sets the current locale for the module.

```js
var holidays = require('node-holidays')('en-US');
assert(holidays.getLocale() === 'en-US');
holidays.setLocale('sv-SE');
assert(holidays.getLocale() === 'sv-SE');
```

### `isHoliday(date)`
Checks if a given date is a holiday.

```js
var is_holiday = holidays.isHoliday('2014-12-25');
assert(is_holiday === true);
```

### `getHolidays(year)`
Gets an array of all holidays for a given year.

```js
var 2014_holidays = holidays.getHolidays(2014);
assert(2014_holidays.indexOf('2014-12-25') > -1);
```

## Extending

Look at `/lib/l10n/_template.js` for an example.


## sv-SE
* [Lag (1989:253) om allmänna helgdagar](http://www.riksdagen.se/sv/Dokument-Lagar/Lagar/Svenskforfattningssamling/Lag-1989253-om-allmanna-hel_sfs-1989-253/)
* [Helgdagar i Sverige](http://sv.wikipedia.org/wiki/Helgdagar_i_Sverige)
npm package: @springworks/mongoose-connection
Description: Manages a named connection to a mongoose database.
Author: Springworks
Latest version: 5.2.1

# @springworks/mongoose-connection

Module that creates and manages a named mongoose connection to a MongoDB database.

The module exports a single function used to create a named wrapper around a mongoose connection.

Example:

```js
const connection_name = 'my connection'; // Used to retrieve connection
const mongo_uri = 'mongodb://...';
const logger = null; // Optional Bunyan logger
const mongoose_connection = require('@springworks/mongoose-connection');
const wrapped_connection = mongoose_connection.getWrapper(connection_name, mongo_uri, logger);

// The connection:
wrapped_connection.connection();

// Connect to the DB. The connect method can be called multiple times.
// Callbacks will be queued until the connection is established (or it failes).
wrapped_connection.connect(function(err) {
  if (!err) {
    // Connected
  }
});

// Disconnect from the DB. Like the connect method, disconnect can be called
// multiple times and will queue callbacks until disconnected.
wrapped_connection.disconnect(function(err) {
  if (!err) {
    // Disconnected
  }
});

// Ping the db server (using the db command "ping")
wrapped_connection.ping(function(err) {
  console.log('Ping %s', err ? 'failed' : 'succeeded');
});
```

## Mongoose
This module will export its own version of mongoose. Please use that export instead of having
mongoose as a dependency in the project using this module. The motivation behind this is that
we ran into errors when using different versions of mongoose in the project using this module.

```javascript
const mongoose_connection = require('@springworks/mongoose-connection');
const mongoose = mongoose_connection.mongoose;
```

## databaseUriFromConfig
Can be used to generate a connection string based on a config object.

```javascript
const mongoose_connection = require('@springworks/mongoose-connection');
const uri = mongoose_connection.databaseUriFromConfig({
  primary_db,
  secondary_dbs,
  db_user,
  db_pass,
  db_name,
});
```

## API

## `getWrapper(connection_name, mongo_uri, logger)`

Create or retrieve a shared connection wrapper by name and uri.

Returns an object with the methods `connection`, `connect` and `disconnect`.


### `connection()`

Get the connection object used by mongoose.


### `connect(callback)`

Connect to the DB. The connect method can be called multiple times while connecting. Callbacks will be queued until the connection is established (or it failes).

The callback function will be invoked with a single `err` param.


### `disconnect(callback)`

Disconnect from the DB. Like the connect method, disconnect can be called multiple times and will queue callbacks until disconnected.

The callback function will be invoked with a single `err` param.


### `ping(callback)`

Ping db server using the ping command. The ping command is a no-op used to test whether a server is responding to commands. This command will return immediately even if the server is write-locked.

The callback function will be invoked with a single `err` param if ping fails.
npm package: @springworks/spw-cli
Description: Some dev utils bundled into a CLI
Author: Springworks
Latest version: 1.1.9
Deprecated: Deprecated

[![Build Status](https://travis-ci.org/Springworks/spw-cli.svg?branch=master)](https://travis-ci.org/Springworks/spw-cli)
[![Dependency Status](https://david-dm.org/Springworks/spw-cli.svg)](https://david-dm.org/Springworks/spw-cli)
[![devDependency Status](https://david-dm.org/Springworks/spw-cli/dev-status.svg)](https://david-dm.org/Springworks/spw-cli#info=devDependencies)
[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)

# spw-cli

[![Greenkeeper badge](https://badges.greenkeeper.io/Springworks/spw-cli.svg)](https://greenkeeper.io/)

Some dev utils bundled into a CLI


```
  Usage: spw [options] [command]


  Commands:

    lint        run eslint with correct config
    test        run mocha with correct config
    help [cmd]  display help for [cmd]

  Options:

    -h, --help     output usage information
    -V, --version  output the version number



  Usage: spw-lint [options]

  Options:

    -h, --help          output usage information
    --fix               automatically fix problems
    --quiet             report errors only
    --cache             only check changed files
    --max-warnings <n>  number of warnings to trigger nonzero exit code
    -f, --format        use a specific output format
    --color             force enabling of color
    --no-color          force disabling of color



  Usage: spw-test [options]

  Options:

    -h, --help             output usage information
    --coverage             measure code coverage
    --acceptance           only run acceptance tests
    --component            only run component tests
    --unit                 only run unit tests
    -R, --reporter <name>  specify the reporter to use
    -b, --bail             bail after first test failure
```