Skip to content

Commit 8314a80

Browse files
committed
y o g u r l
0 parents  commit 8314a80

File tree

7 files changed

+451
-0
lines changed

7 files changed

+451
-0
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.DS_Store
2+
node_modules/

LICENSE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Filippo Oretti
4+
5+
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:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
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.

README.md

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
<p align="center">
2+
<a href="http://yogurl.io">
3+
<img width="250" src="http://i.imgur.com/i2aenJ7.png">
4+
</a>
5+
<p align="center">Easy urls for your files and code.</p>
6+
</p>
7+
8+
###What's Yogurl?
9+
10+
Yogurl is the simple command line tool for [Yogurl.io](https://yogurl.io)
11+
12+
It can be used as a [CLI](#install-cli) or installed as [node dependencies](#node-usage) if you prefer.
13+
14+
###Requirements
15+
16+
Node.js v5+
17+
18+
###Install CLI
19+
20+
```html
21+
npm install -g yogurl
22+
```
23+
24+
###CLI Usage
25+
26+
```
27+
$ yogurl <source> [ext]
28+
```
29+
30+
```source```: A valid [file](Accepted extensions and file types) path or code string
31+
32+
```ext```: A valid [extension](Accepted extensions and file types) available
33+
34+
####Yogurlify a file
35+
36+
```bash
37+
$ yogurl path/to/file.js
38+
```
39+
40+
####Yogurlify a code string
41+
42+
```bash
43+
$ yogurl ".yogurl{ display:yogurl; }" css
44+
```
45+
46+
###Node Usage
47+
48+
####Installation
49+
50+
```bash
51+
$ npm install yogurl --save
52+
```
53+
54+
####Yogurlify a file
55+
56+
```javascript
57+
const Yogurl = require('yogurl');
58+
59+
Yogurl.upload('/path/to/file.json', 'json').then((data) => {
60+
//file is ready
61+
console.log(data);
62+
console.log('File is ready at:', data.data);
63+
64+
}).catch((err) => {
65+
//error
66+
console.log(err);
67+
});
68+
```
69+
70+
####Yogurlify a code string
71+
72+
```javascript
73+
const Yogurl = require('yogurl');
74+
75+
Yogurl.upload("var x = 'yogurlify a javascript var';", 'js').then((data) => {
76+
//file is ready
77+
console.log(data);
78+
console.log(`File is ready at: ${data.data}`);
79+
80+
}).catch((err) => {
81+
//error
82+
console.log(err);
83+
});
84+
```
85+
86+
###Available Output File Extensions
87+
`.js`
88+
89+
`.css`
90+
91+
`.scss`
92+
93+
`.map`
94+
95+
`.json`
96+
97+
###Available Input File Extensions
98+
99+
ANY (supposed)
100+
101+
###Why Yogurl?
102+
103+
Yogurl is born to help devs to get an url of their local ources (files or code) easily and as quick as possible.
104+
It is built for **development purposes**, it's not really recommended to use it in a production environment, **yogurl urls gets deleted after some time, so that you don't have to take care about them**.
105+
106+
Since Yogurl is not backed by any sponsor or funds of any kind: we apologize for any trouble/problem/issue you could encounter.
107+
108+
Please don't spam it and use it with moderation, Yogurl is your friend.
109+
110+
###Contact Yogurl
111+
112+
Feel free to open an issue or contact us on [twitter](http://twitter.com/720kb_)
113+
114+
###Contributing
115+
116+
We will be much grateful if you help us to grow and improve the project.
117+
Contribute by forking, opening issues, pull requests and whatever.
118+
119+
###License
120+
121+
[MIT](http://github.com/720kb/yogurl/#license.md)

0 commit comments

Comments
 (0)