https://github.com/wavesoft/raml-lipsum
Generates random data from RAML specifications
https://github.com/wavesoft/raml-lipsum
Last synced: 5 months ago
JSON representation
Generates random data from RAML specifications
- Host: GitHub
- URL: https://github.com/wavesoft/raml-lipsum
- Owner: wavesoft
- License: mit
- Created: 2016-08-24T11:57:17.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-03-29T22:54:54.000Z (almost 7 years ago)
- Last Synced: 2025-05-04T09:37:29.266Z (9 months ago)
- Language: JavaScript
- Size: 15.6 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# raml-lipsum [Beta]
Generates random data from RAML 1.0 type specifications
**NOTE:** This generator operats only on the RAML 1.0 `type` specifications.
It's not aware of anything else at the moment.
# Usage
You can use `raml-lipsum` either from the command-line, or as a node library.
From the command-line:
```bash
~$ raml-lipsum path/to/file.raml TypeName > sample-data.json
```
As a library:
```js
var RAMLGenerator = require('raml-lipsum');
// Load RAML file and create a generator
var generator = new RAMLGenerator('/path/to/file.raml');
// Generate some data for the given type
var data = generator.generate('TypeName');
console.log(JSON.stringify(data));
```
# Installation
project: `npm install raml-lipsum --save`
global: `npm install raml-lipsum -g`
# License
Copyright (c) 2016 Ioannis Charalampidis
MIT (http://opensource.org/licenses/mit-license.php)