{"size": 652, "ext": "js", "max_stars_repo_path": "node_modules/@citation-js/core/lib-mjs/Cite/index.js", "max_stars_repo_name": "AkashPushkar/akashpushkar.github.io", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "node_modules/@citation-js/core/lib-mjs/Cite/index.js", "max_issues_repo_name": "AkashPushkar/akashpushkar.github.io", "max_issues_repo_issues_event_min_datetime": "2021-05-11T12:48:06.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-11T12:48:06.000Z", "max_forks_repo_path": "node_modules/@citation-js/core/lib-mjs/Cite/index.js", "max_forks_repo_name": "AkashPushkar/akashpushkar.github.io", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 22.4827586207, "max_line_length": 60, "alphanum_fraction": 0.6518404908}
import * as log from './log';
import * as options from './options';
import * as set from './set';
import * as sort from './sort';
import * as get from './get';
import * as staticMethods from './static';

function Cite(data, options = {}) {
  if (!(this instanceof Cite)) {
    return new Cite(data, options);
  }

  this._options = options;
  this.log = [];
  this.data = [];
  this.set(data, options);
  this.options(options);
  this.save();
  return this;
}

Object.assign(Cite.prototype, log, options, set, sort, get);

Cite.prototype[Symbol.iterator] = function* () {
  yield* this.data;
};

Object.assign(Cite, staticMethods);
export default Cite;