You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+37-13
Original file line number
Diff line number
Diff line change
@@ -1,18 +1,23 @@
1
1
# Haste
2
2
3
-
Haste is an open-source pastebin software written in node.js, which is easily installable in any network. It can be backed by either redis or filesystem, and has a very easy adapter interface for other stores. A publicly available version can be found at [hastebin.com](http://hastebin.com)
3
+
Haste is an open-source pastebin software written in node.js, which is easily
4
+
installable in any network. It can be backed by either redis or filesystem,
5
+
and has a very easy adapter interface for other stores. A publicly available
6
+
version can be found at [hastebin.com](http://hastebin.com)
4
7
5
8
Major design objectives:
6
9
7
10
* Be really pretty
8
11
* Be really simple
9
12
* Be easy to set up and use
10
13
11
-
Haste works really well with a little utility called haste-client, allowing you to do things like:
14
+
Haste works really well with a little utility called haste-client, allowing you
15
+
to do things like:
12
16
13
17
`cat something | haste`
14
18
15
-
which will output a URL to share containing the contents of `cat something`'s STDOUT
19
+
which will output a URL to share containing the contents of `cat something`'s
20
+
STDOUT
16
21
17
22
## Tested Browsers
18
23
@@ -35,7 +40,8 @@ which will output a URL to share containing the contents of `cat something`'s ST
35
40
*`maxLength` - maximum length of a paste (default none)
36
41
*`staticMaxAge` - max age for static assets (86400)
37
42
*`recompressStatisAssets` - whether or not to compile static js assets (true)
38
-
*`documents` - static documents to serve (ex: http://hastebin.com/about.com) in addition to static assets. These will never expire.
43
+
*`documents` - static documents to serve (ex: http://hastebin.com/about.com)
44
+
in addition to static assets. These will never expire.
39
45
*`storage` - storage options (see below)
40
46
*`logging` - logging preferences
41
47
*`keyGenerator` - key generator options (see below)
@@ -63,13 +69,15 @@ Generates a random key
63
69
}
64
70
```
65
71
66
-
The _optional_ keySpace argument is a string of acceptable characters for the key.
72
+
The _optional_ keySpace argument is a string of acceptable characters
73
+
for the key.
67
74
68
75
## Storage
69
76
70
77
### File
71
78
72
-
To use file storage (the default) change the storage section in `config.js` to something like:
79
+
To use file storage (the default) change the storage section in `config.js` to
80
+
something like:
73
81
74
82
```json
75
83
{
@@ -97,7 +105,9 @@ Once you've done that, your config section should look like:
97
105
}
98
106
```
99
107
100
-
You can also set an `expire` option to the number of seconds to expire keys in. This is off by default, but will constantly kick back expirations on each view or post.
108
+
You can also set an `expire` option to the number of seconds to expire keys in.
109
+
This is off by default, but will constantly kick back expirations on each view
110
+
or post.
101
111
102
112
All of which are optional except `type` with very logical default values.
103
113
@@ -117,7 +127,9 @@ Once you've done that, your config section should look like:
117
127
}
118
128
```
119
129
120
-
You can also set an `expire` option to the number of seconds to expire keys in. This behaves just like the redis expirations, but does not push expirations forward on GETs.
130
+
You can also set an `expire` option to the number of seconds to expire keys in.
131
+
This behaves just like the redis expirations, but does not push expirations
132
+
forward on GETs.
121
133
122
134
All of which are optional except `type` with very logical default values.
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:
136
-
137
-
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
138
-
139
-
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
147
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
148
+
this software and associated documentation files (the ‘Software’), to deal in
149
+
the Software without restriction, including without limitation the rights to
0 commit comments