scratch
/bower_components/angular-yamljs/.bower.json |
@@ -0,0 +1,38 @@ |
{ |
"name": "angular-yamljs", |
"authors": [ |
"Mumshad Mannambeth <mmumshad@gmail.com>" |
], |
"description": "Angular wrapper for yamljs", |
"main": [ |
"dist/angular-yamljs.js" |
], |
"keywords": [ |
"yamljs", |
"angular" |
], |
"dependencies": { |
"angular": "~1.x", |
"yaml.js": "*" |
}, |
"license": "MIT", |
"homepage": "https://github.com/mmumshad/angular-yamljs", |
"ignore": [ |
"**/.*", |
"node_modules", |
"bower_components", |
"client/bower_components", |
"test", |
"tests" |
], |
"_release": "d052ed40f2", |
"_resolution": { |
"type": "branch", |
"branch": "master", |
"commit": "d052ed40f2139fa5815a7b840090a9a60c40aba2" |
}, |
"_source": "https://github.com/mmumshad/angular-yamljs.git", |
"_target": "*", |
"_originalSource": "angular-yamljs", |
"_direct": true |
} |
/bower_components/angular-yamljs/LICENSE |
@@ -0,0 +1,21 @@ |
MIT License |
|
Copyright (c) 2016 Mumshad Mannambeth |
|
Permission is hereby granted, free of charge, to any person obtaining a copy |
of this software and associated documentation files (the "Software"), to deal |
in the Software without restriction, including without limitation the rights |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
copies of the Software, and to permit persons to whom the Software is |
furnished to do so, subject to the following conditions: |
|
The above copyright notice and this permission notice shall be included in all |
copies or substantial portions of the Software. |
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
SOFTWARE. |
/bower_components/angular-yamljs/README.md |
@@ -0,0 +1,35 @@ |
# angular-yamljs |
|
This is an angular wrapper for [YAMLJS](https://github.com/jeremyfa/yaml.js) written by [Jeremy Faivre](https://github.com/jeremyfa) |
|
|
How to Install |
---------- |
|
``` bash |
bower install angular-yamljs |
``` |
|
How to use |
---------- |
Add dependency to angular application |
|
``` js |
angular.module('app', ['mmumshad.yamljs']); |
``` |
|
Use it in code |
|
``` js |
angular.module('app') |
.controller('Ctrl1', function (YAML) { |
// parse YAML string |
nativeObject = YAML.parse(yamlString); |
|
// Generate YAML |
yamlString = YAML.stringify(nativeObject, 4); |
|
// Load yaml file using YAML.load |
nativeObject = YAML.load('myfile.yml'); |
}); |
``` |
/bower_components/angular-yamljs/bower.json |
@@ -0,0 +1,29 @@ |
{ |
"name": "angular-yamljs", |
"authors": [ |
"Mumshad Mannambeth <mmumshad@gmail.com>" |
], |
"description": "Angular wrapper for yamljs", |
"main": [ |
"dist/angular-yamljs.js" |
], |
"keywords": [ |
"yamljs", |
"angular" |
], |
"dependencies": { |
"angular": "~1.x", |
"yaml.js": "*" |
}, |
"license": "MIT", |
"version": "0.0.1", |
"homepage": "", |
"ignore": [ |
"**/.*", |
"node_modules", |
"bower_components", |
"client/bower_components", |
"test", |
"tests" |
] |
} |
/bower_components/angular-yamljs/dist/angular-yamljs.js |
@@ -0,0 +1,8 @@ |
angular.module('mmumshad.yamljs', []).provider('YAML', function () { |
// paste minified d3 code in here |
this.$get = ['$window', function ($window) { |
// configure JSONEditor using provider's configuration |
return $window.YAML; |
}]; |
|
}); |
/bower_components/angular-yamljs/src/angular-yamljs.js |
@@ -0,0 +1,8 @@ |
angular.module('mmumshad.yamljs', []).provider('YAML', function () { |
// paste minified d3 code in here |
this.$get = ['$window', function ($window) { |
// configure JSONEditor using provider's configuration |
return $window.YAML; |
}]; |
|
}); |