Last active
March 25, 2017 22:41
-
-
Save jpoechill/c0aed4bb2a1ded8c2e03558bf8d3c726 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var text = ` | |
vue-cli - Simple CLI for scaffolding Vue.js projects. | |
Vue Plugin Boilerplate - Boilerplate for Vue.js plugin. | |
Bourgeon - Bourgeon is an opinionated-featured VueJS 2.0 setup for Webpack. | |
VuePack - A modern starter which uses Vue 2, Vuex, Vue-router and Webpack 2 (and even Electron). | |
` | |
text = text.trim().split("\n"); | |
var object = {} | |
var items = []; | |
for (var i = 0; i < text.length; i++) { | |
items.push(text[i]); | |
// console.log(object[i] = text[i]); | |
} | |
object.category = "Resources"; | |
object.items = items; | |
console.log(object); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment