Socket
Socket
Sign inDemoInstall

croud-layout

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

croud-layout - npm Package Compare versions

Comparing version 1.11.1 to 1.11.2

2

package.json
{
"name": "croud-layout",
"main": "src/plugin.js",
"version": "1.11.1",
"version": "1.11.2",
"description": "A Vue.js project",

@@ -6,0 +6,0 @@ "author": "Brock <brock.reece@croud.co.uk>",

@@ -37,2 +37,27 @@ # croud-layout

```
## Moment
The croud-layout plugin will add [vue-moment](https://github.com/brockpetrie/vue-moment) to your project. This will globally register the moment filter...
```html
<div>{{ date | moment('YYYY-MM-DD')}}</div>
```
...and also add $moment to the Vue prototype...
```js
//App.vue
this.$moment(date).format('YYYY-MM-DD')
```
See their docs for more examples.
### Custom moment instance
You can pass in a custom moment instance to replace vue-moment's default instance by adding a moment object to the croud-layout plugin options
```js
import moment from 'moment-timezone'
...
Vue.use(CroudLayout, { store, moment })
```
## Axios plugin

@@ -39,0 +64,0 @@ A drop in replacement for vue-resource

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc