Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joshgillies/node-matrix-virtual-assets
Create Squiz Matrix assets as virtual tress in JavaScript!
https://github.com/joshgillies/node-matrix-virtual-assets
Last synced: 5 days ago
JSON representation
Create Squiz Matrix assets as virtual tress in JavaScript!
- Host: GitHub
- URL: https://github.com/joshgillies/node-matrix-virtual-assets
- Owner: joshgillies
- License: mit
- Created: 2015-09-17T11:50:04.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-20T22:54:06.000Z (about 9 years ago)
- Last Synced: 2024-10-19T00:15:18.085Z (27 days ago)
- Language: JavaScript
- Homepage:
- Size: 148 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# node-matrix-virtual-assets
Create Squiz Matrix assets as virtual tress in JavaScript!
[![Build Status](https://travis-ci.org/joshgillies/node-matrix-virtual-assets.svg)](https://travis-ci.org/joshgillies/node-matrix-virtual-assets)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard)## Example
```js
var asset = require('node-matrix-virtual-assets')var tree = asset('folder', { name: 'Sites', link: 'type_2' }, [
asset('site', { name: 'My Site' }, [
asset('page_standard', { name: 'Home' }, [
asset('bodycopy', { link: 'type_2', dependant: '1', exclusive: '1' }, [
asset('bodycopy_div', { link: 'type_2', dependant: '1' }, [
asset('content_type_wysiwyg', { link: 'type_2', dependant: '1', exclusive: '1' })
])
])
])
])
])
```## Install
`npm install node-matrix-virtual-assets`
## License
MIT