index.js 809 B

1234567891011121314151617181920212223242526272829
  1. 'use strict';
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.read = read;
  6. exports.write = write;
  7. var MultiIni = require('./multi-ini-class');
  8. var Parser = require('./parser');
  9. var Serializer = require('./serializer');
  10. var filters = require('./filters');
  11. exports.filters = filters;
  12. exports.Class = MultiIni;
  13. exports.Parser = Parser;
  14. exports.Serializer = Serializer;
  15. function read(filename) {
  16. var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
  17. var instance = new MultiIni(options);
  18. return instance.read(filename);
  19. }
  20. function write(filename, content) {
  21. var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
  22. var instance = new MultiIni(options);
  23. return instance.write(filename, content);
  24. }