open-index/open-npm huggingface dataset:
npm package: @flyingfly/store
Description: 创建一个新的 store
Latest version: 0.0.2

# zustand 帮助函数，减少范式代码

创建一个新的 store

- @param {createSliceFunc} createSlice
- @returns 新的 store 函数
- @description 用于创建一个新的 store 函数，该函数可以用于获取 store 中的状态和 setState 方法

```js
const createSlice = (set: any, get: any) => ({
   count: 0,
    increment: () => set({ count: get().count + 1 })
 });
const useStore = createStore(createSlice);
const { count, increment, setState, getState } = useStore('count', 'increment');
```
npm package: @flyinghippo/grunt-setver
Description: Set version according to git tags.
Author: Flying Hippo
Latest version: 0.0.10

# grunt-setver

> Set version according to git tags.

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-setver --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-setver');
```

## The "setver" task

### Overview
In your project's Gruntfile, add a section named `setver` to the data object passed into `grunt.initConfig()`.

```js
grunt.initConfig({
  setver: {
    options: {
      // Task-specific options go here.
    },
    your_target: {
      // Target-specific file lists and/or options go here.
    },
  },
});
```

The "setver" task will run without explictt configuration, updating `package.json` 


### Options

#### options.key
Type: `String`
Default value: `version`

The key to set in the JSON file. 

#### options.file
Type: `String`
Default value: `package.json`

The filename to set version informaiton. 

### Usage Examples

#### Default Options

Set 'version' in package.json. 

```js
grunt.initConfig({
});

```

#### Custom Options

Set 'version2' in package2.json.

```js
grunt.initConfig({
  setver: {
    options: {
      key: 'version2 ',
      file: 'package2.json',
    },
  },
});
```

#### Setting versions in multiple files

Use "setverM" multitask to work on multiple files. 

```js
grunt.initConfig({
  setverM: {
    options: {},
    src: [
      'package.json',
      'submodule1/package.json',
      'submodule2/package.json',
    ],
  },
});
```


## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_