lodash-for-vue

1.0.5 • Public • Published

lodash-for-vue

npm version downloads

A small wrapper for integrating lodash to Vue.js (inspired by vue-axios plugin by imcvampire)

How to install:

CommonJS:

npm install lodash-for-vue --save
OR
yarn add lodash-for-vue

And in your entry file:

import Vue from 'vue'
import LodashForVue from 'lodash-for-vue'

Vue.use(LodashForVue)

Script:

Just add 2 scripts in order: vue and vue-lodash to your document.

Usage:

This wrapper bind lodash to Vue or this if you're using single file component.

You can lodash like this:

Vue.$lodash.random(20)

this.$lodash.random(20)

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.5
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.5
    1
  • 1.0.3
    0
  • 1.0.2
    0
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i lodash-for-vue

Weekly Downloads

1

Version

1.0.5

License

AFL-2.0

Unpacked Size

4.78 kB

Total Files

8

Last publish

Collaborators

  • kekaadrenalin