1.3.9 • Published 6 years ago

chadwick-to-mongo v1.3.9

Weekly downloads
12
License
ISC
Repository
github
Last release
6 years ago

Chadwick Bureau Baseball Databank to MongoDB Utility

Chadwick Bureau Baseball Databank.

GitHub Repo.

chadwick-to-mongo is a utility for taking the Chadwick Bureau Baseball Databank repo and converting it into a MongoDB Database. This utility will take in a config (mongo db path, a directory name for whatever you want to call the downloaded repo, and a name in which you want the database to be called). The config is optional. If you do not pass in a config, it will use default values:

   mongoPath: 'mongodb://localhost:27017'
   directoryName: 'chadwick'
   databaseName: 'chadwick'

In addition, while the utility it creating the MongoDB Collections, it will go ahead and index obvious fields such as playerID, teamID, yearID and a text index for a players full name (in the people collection).

Pull requests, bugs, features and general questions are welcome.

Install

npm install chadwick-to-mongo --save

Usage

With a config
import { ChadwickConfig, ChadwickToMongo } from 'chadwick-to-mongo/dist';

const config = new ChadwickConfig('mongodb://localhost:27017', 'chadwick', 'chadwick');
const ctm = new ChadwickToMongo(config);
ctm.init();
Without a config
import { ChadwickConfig, ChadwickToMongo } from 'chadwick-to-mongo/dist';

const ctm = new ChadwickToMongo();
ctm.init();
1.3.9

6 years ago

1.3.8

6 years ago

1.3.7

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.6

6 years ago

1.2.5

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.9

6 years ago

1.1.8

6 years ago

1.1.7

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.3

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago