# vue-underscore

> simple underscore implementation for vueJS

Latest version **0.1.4** (published 2017-11-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install vue-underscore
pnpm add vue-underscore
yarn add vue-underscore
bun add vue-underscore
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.4 |
| Published | 2017-11-23 |
| First published | 2017-11-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 18 |
| Author | Haluk Keskin |
| Maintainers | raimaster |

## Links

- npm: https://www.npmjs.com/package/vue-underscore
- Repository: https://github.com/HKskn/vue-underscore
- Homepage: https://github.com/HKskn/vue-underscore#readme
- Issues: https://github.com/HKskn/vue-underscore/issues
- npm.io page: https://npm.io/package/vue-underscore

## Dependencies (1)

- [underscore](https://npm.io/package/underscore.md) ^1.8.3

## Recent versions

- 0.1.4 (latest) — 2017-11-23
- 0.1.3 — 2017-11-17
- 0.1.2 — 2017-11-17
- 0.1.1 — 2017-11-17
- 0.1.0 — 2017-11-17
- 0.0.2 — 2017-11-16
- 0.0.1 — 2017-11-16

## README

# vue-underscore

You know Underscore.js is a utility-belt library for JavaScript that provides support for the usual functional suspects (each, map, reduce, filter...) without extending any core JavaScript objects.
I arranged it as a vue plugin to use on your projects.

[![Version](https://img.shields.io/npm/v/vue-underscore.svg)](https://www.npmjs.com/package/vue-underscore)
[![Packagist](https://img.shields.io/packagist/l/doctrine/orm.svg?style=plastic)](https://www.npmjs.com/package/vue-underscore)


# Table of Contents
* [___Requirements___](#requirements)
* [___Installation___](#installation)
* [___Usage___](#usage)  
* [___Examples___](#examples)
* [___License___](#license)

# Requirements
- [Vue.js](https://github.com/vuejs/vue) `2.x` 


# Installation
```bash
# npm
$ npm install vue-underscore

```
# Usage
After use plugin on main.js. You can call it simply with 'this.$_.findwhere' (each, map, reduce, filter...)

main.js

```javascript
import Vue from 'vue';
import underscore from 'vue-underscore';
import App from './App';

Vue.use(underscore);

new Vue({
  ...App
}).$mount('#app');
```
You will be able to access underscore directly via

```javascript
import {_} from 'vue-underscore';

let testArr = [{id: 1}, {id:2}];
let foundInfo = _.findWhere(testArr, {id:1});

```

# Examples
```html

<script>
export default {
  methods: {
    test () {
      let testArr = [{id: 1}, {id:2}];
  
      let foundInfo = this.$_.findWhere(testArr, {id:1});
    
    }
  }
}
</script>

```


# License

[The MIT License](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/vue-underscore · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
