https://github.com/jayydoesdev/roseamelia-easymongo-ts
This is a typescript version of @roseamelia/easymongo-ts
https://github.com/jayydoesdev/roseamelia-easymongo-ts
Last synced: 10 months ago
JSON representation
This is a typescript version of @roseamelia/easymongo-ts
- Host: GitHub
- URL: https://github.com/jayydoesdev/roseamelia-easymongo-ts
- Owner: JayyDoesDev
- License: mit
- Created: 2021-06-02T22:56:30.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-03T02:34:42.000Z (about 5 years ago)
- Last Synced: 2025-09-01T00:46:00.022Z (10 months ago)
- Language: TypeScript
- Size: 21.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# roseamelia/easymongo-ts
This is a typescript version of [@roseamelia/easymongo](https://www.npmjs.com/package/@roseamelia/easymongo)
All credit goes to [RoseAmelia](https://github.com/RoseAmelia)
## TypeScript Setup
```typescript
import { MongoClient } from '.'
const mongo: MongoClient = new MongoClient({
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true
})
mongo.connect("Mongodb Url")
mongo.on()
```
## JavaScript Setup
```javascript
const { MongoClient } = require(".");
const mongo = new MongoClient({
useNewUrlParser: true,
useUnifiedTopology: true,
useFindAndModify: false,
useCreateIndex: true
});
mongo.connect("Mongodb url");
mongo.on();
```
## Credits
[RoseAmelia](https://github.com/RoseAmelia)