{"id":19030494,"url":"https://github.com/sofish/mongoimport","last_synced_at":"2026-03-02T16:35:57.123Z","repository":{"id":57301881,"uuid":"46212477","full_name":"sofish/mongoimport","owner":"sofish","description":"import JSON to mongo collection","archived":false,"fork":false,"pushed_at":"2018-04-10T08:59:48.000Z","size":7,"stargazers_count":11,"open_issues_count":3,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-06T06:07:02.245Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofish.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-11-15T09:57:23.000Z","updated_at":"2019-02-26T16:27:20.000Z","dependencies_parsed_at":"2022-08-24T17:10:39.254Z","dependency_job_id":null,"html_url":"https://github.com/sofish/mongoimport","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fmongoimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fmongoimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fmongoimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofish%2Fmongoimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofish","download_url":"https://codeload.github.com/sofish/mongoimport/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249341826,"owners_count":21254193,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T21:18:09.137Z","updated_at":"2026-03-02T16:35:57.071Z","avatar_url":"https://github.com/sofish.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![build status](https://travis-ci.org/sofish/mongoimport.svg?branch=master)\n\n# mongoimport\n\nimport JSON to mongodb, associate with [sofish/log2json](https://github.com/sofish/log2json) to manage nginx logs.\n\n```php\n$ npm install mongoimport --save\n```\n\n## Usage\n\nInstall the package with npm, and bring it to your project.\n\n```js\nvar mi = require('mongoimport');\nmi(config);\n```\n\nFollow the codes below to create a config object:\n\n  ```js\nvar config = {\n  fields: [],                     // {array} data to import\n  db: 'name',                     // {string} name of db\n  collection: 'collection'        // {string|function} name of collection, or use a function to\n                                  //  return a name, accept one param - [fields] the fields to import\n\n  // they're options\n  host: 'localhost:27017',        // {string} [optional] by default is 27017\n  username: 'sofish',             // {string} [optional]\n  password: '***'                 // {string} [optional]\n  callback: (err, db) =\u003e {}       // {function} [optional]\n};\n```\n\n## Test\n\nSimply run `npm test` to see what happens.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fmongoimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofish%2Fmongoimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofish%2Fmongoimport/lists"}