Skip to content

Commit 9b1fd45

Browse files
committed
Updated typos and travis urls in readme
1 parent 74b8d8a commit 9b1fd45

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
- Compatibility with MongoDb versions 2 and 3.
1010
- Really simple api.
11-
- Compatible with any Node.js version equal or greater than 10.
11+
- Compatible with any current Node.js version.
1212
- Caching of url based connections.
1313
- Compatible with Mongoose connection objects.
1414
- Promise support.
@@ -182,7 +182,7 @@ const db = client.then(cl => cl.db('database'));
182182
const storage = new GridFsStorage({ db, client});
183183
```
184184

185-
Using this feature is highly recommended to keep the storage in sync with the underlying connection status and to make your code more resilient to future changes in the mongodb library.
185+
Using this feature is highly recommended in order to keep the storage in sync with the underlying connection status and to make your code more resilient to future changes in the mongodb library.
186186

187187
#### file
188188

@@ -194,7 +194,7 @@ A function to control the file storage in the database. Is invoked **per file**
194194

195195
This module uses [`GridFSBucket`](http://mongodb.github.io/node-mongodb-native/3.1/api/GridFSBucket.html) to store files in the database falling back to [`GridStore`](http://mongodb.github.io/node-mongodb-native/3.1/api/GridStore.html) in case the previous class is not found like, for example, in earlier versions of MongoDb.
196196

197-
By default, naming behaves exactly like the default Multer disk storage. A 16 bytes long name in a hexadecimal format with no extension is generated for each file to guarantee that there are very low probabilities of collisions. You can override this by passing your own function.
197+
By default, naming behaves exactly like the default Multer disk storage, a 16 bytes long name in a hexadecimal format with no extension is generated for each file to guarantee that there are very low probabilities of collisions. You can override this by passing your own function.
198198

199199
The return value of this function is an object, or a promise that resolves to an object (this also applies to generators) with the following properties.
200200

@@ -464,7 +464,7 @@ try {
464464

465465
Remember that you don't need to wait for the connection to be ready to start uploading files. The module buffers every incoming file until the connection is ready and saves all of them as soon as possible.
466466

467-
The `ready` method is just a convenience function over code written using the `connection` events also with a couple of advantages. If you setup a listener after the `connection` or `connectionFailed` events are dispatched your code will not execute while using the `ready` method it will. The module keeps track of this events and resolves or rejects the promises accordingly. Promises in this case are more readable than events and more reliable.
467+
The `ready` method is just a convenience function over code written using the `connection` events also with a couple of advantages. If you set up a listener after the `connection` or `connectionFailed` events are dispatched your code will not execute while using the `ready` method it will. The module keeps track of these events and resolves or rejects the promises accordingly. Promises in this case are more readable than events and more reliable.
468468

469469
### ⚡ Events
470470

@@ -561,8 +561,8 @@ $ npm run coverage
561561

562562
[MIT](https://github.com/devconcept/multer-gridfs-storage/blob/master/LICENSE)
563563

564-
[travis-url]: https://travis-ci.com/devconcept/multer-gridfs-storage
565-
[travis-image]: https://travis-ci.com/devconcept/multer-gridfs-storage.svg?branch=master "Build status"
564+
[travis-url]: https://travis-ci.org/devconcept/multer-gridfs-storage
565+
[travis-image]: https://travis-ci.org/devconcept/multer-gridfs-storage.svg?branch=master "Build status"
566566
[coveralls-url]: https://coveralls.io/github/devconcept/multer-gridfs-storage?branch=master
567567
[coveralls-image]: https://coveralls.io/repos/github/devconcept/multer-gridfs-storage/badge.svg?branch=master "Coverage report"
568568
[version-image]:https://img.shields.io/npm/v/multer-gridfs-storage.svg "Npm version"

0 commit comments

Comments
 (0)