Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yesworld/nuxt-feed-yandex-market
📦 A Nuxt.js module that generates an XML file for Yandex.Market
https://github.com/yesworld/nuxt-feed-yandex-market
feed market nuxt nuxt-module vue xml yandex yandex-market
Last synced: 3 months ago
JSON representation
📦 A Nuxt.js module that generates an XML file for Yandex.Market
- Host: GitHub
- URL: https://github.com/yesworld/nuxt-feed-yandex-market
- Owner: yesworld
- License: mit
- Created: 2019-01-25T11:15:13.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-06-21T23:19:50.000Z (over 1 year ago)
- Last Synced: 2024-10-13T14:13:36.547Z (4 months ago)
- Topics: feed, market, nuxt, nuxt-module, vue, xml, yandex, yandex-market
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/nuxt-feed-yandex-market
- Size: 2.56 MB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Nuxt.js module that generates an XML file for Yandex.Market (YML)
[![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)A wrapper over [Yandex Market Language(YML)](https://github.com/LotusTM/yandex-market-language) that generates a JSON object into the xml file, heavily inspired by [nuxt-community/feed-module](https://github.com/nuxt-community/feed-module). The module supports Nuxt 2.x. There is `yarn run generate` support.
## Simple usage
- Install `yarn add nuxt-feed-yandex-market`
- Add `nuxt-feed-yandex-market` to `modules` section of `nuxt.config.js````js
export default {
modules: [
'nuxt-feed-yandex-market'
],
// @deprecated use feedYml
yandexMarket: {},
feedYml: {
data: {}, // JSON with data or a function that returns the JSON
path: '/yandex-market.xml', // The route to your xml file
validate: true,
cacheTime: 1000 * 3600 * 24
}
}
```or
```js
export default {
modules: [
'nuxt-feed-yandex-market'
],
feedYml: [
{
async data () {
// await axios
return {
name: 'SuperShop',
company: 'Tne Best inc.',
url: 'https://yesworld.github.io/portfolio/',
...
}
},
path: '/yandex-market.xml',
validate: true,
cacheTime: 1000 * 3600 * 24
},
{
data: {},
path: '/aliexpress.xml'
}
]
}
```## License
[MIT License](./LICENSE)
Copyright (c) :suspect: @yesworld