Skip to content

Instantly share code, notes, and snippets.

@jpoechill
Last active March 25, 2017 22:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpoechill/c0aed4bb2a1ded8c2e03558bf8d3c726 to your computer and use it in GitHub Desktop.
Save jpoechill/c0aed4bb2a1ded8c2e03558bf8d3c726 to your computer and use it in GitHub Desktop.
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