Skip to content

Commit

Permalink
rename shorthandReaders -> directReaders, move readDbf
Browse files Browse the repository at this point in the history
  • Loading branch information
mhkeller committed Sep 13, 2017
1 parent 998620a commit 64c62cc
Show file tree
Hide file tree
Showing 21 changed files with 125 additions and 63 deletions.
11 changes: 11 additions & 0 deletions dist/indian-ocean.browser.es6.js
Original file line number Diff line number Diff line change
Expand Up @@ -6565,6 +6565,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
/**
* A port of jQuery's extend. Merge the contents of two or more objects together into the first object. Supports deep extending with `true` as the first argument.
*
* @function extend
* @param {Boolean} [deepExtend] Optional, set to `true` to merge recursively.
* @param {Object} destination The object to modify
* @param {Object} source The object whose contents to take
Expand Down Expand Up @@ -6682,6 +6683,7 @@ function extend$1() {
/**
* A more semantic convenience function. Delegates to {@link helpers#extend} and passes `true` as the first argument. Recursively merge the contents of two or more objects together into the first object.
*
* @function deepExtend
* @param {Object} destination The object to modify
* @param {Object} source The object whose contents to take
* @param {Object} [source2] Optional, You can add any number of objects as arguments.
Expand Down Expand Up @@ -6734,6 +6736,8 @@ function extname(filename) {

/**
* Given a `fileName` return its file extension. Used internally by `.discernPaser` and `.discernFileFormatter`.
*
* @function discernFormat
* @param {String} fileName the name of the file
* @returns {String} the file's extension
*
Expand All @@ -6751,6 +6755,8 @@ function discernFormat(fileName) {

/**
* Returns a formatter that will format json data to file type specified by the extension in `fileName`. Used internally by `.writeData` and `.writeDataSync`.
*
* @function discernFileFormatter
* @param {String} fileName the name of the file
* @returns {Object} a formatter that can write the file
*
Expand Down Expand Up @@ -8710,6 +8716,8 @@ formatsList.forEach(function (format) {

/**
* Given a `fileName` return a parser that can read that file as json. Parses as text if format not supported by a built-in parser. If given a delimter string as the second argument, return a parser for that delimiter regardless of `fileName`. Used internally by `.readData` and `.readDataSync`.
*
* @function discernParser
* @param {String} fileName the name of the file
* @param {String} delimiter Alternative usage is to pass a delimiter string. Delegates to `dsv.dsvFormat`.
* @returns {Object} a parser that can read the file
Expand All @@ -8736,6 +8744,7 @@ function discernParser(fileName, delimiter) {
/**
* Test whether a file name has the given extension
*
* @function extMatchesStr
* @param {String} fileName The name of the file.
* @param {String} extension The extension to test. An empty string will match a file with no extension.
* @returns {Boolean} whether The extension matched or not.
Expand Down Expand Up @@ -8765,6 +8774,7 @@ function getParser(delimiterOrParser) {
/**
* Test whether a string matches a given Regular Expression.
*
* @function matchesRegExp
* @param {String} fileName The name of the file or file path.
* @param {RegExp} RegEx The RegEx to match with.
* @returns {Boolean} whether The string matches the RegEx.
Expand All @@ -8787,6 +8797,7 @@ function isRegExp$1(obj) {
/**
* Test whether a file name or path matches a given matcher. Delegates to {@link helpers#extMatches} if `matcher` is a string` and tests only against the file name extension. Delegates to {@link helpers#extMatchRegEx} if matcher is a Regular Expression and tests against entire string, which is usefulf or testing the full file path.
*
* @function matches
* @param {String} fileName The name of the file or path to the file.
* @returns {String} matcher The string to match with.
*
Expand Down
11 changes: 11 additions & 0 deletions dist/indian-ocean.js
Original file line number Diff line number Diff line change
Expand Up @@ -6571,6 +6571,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
/**
* A port of jQuery's extend. Merge the contents of two or more objects together into the first object. Supports deep extending with `true` as the first argument.
*
* @function extend
* @param {Boolean} [deepExtend] Optional, set to `true` to merge recursively.
* @param {Object} destination The object to modify
* @param {Object} source The object whose contents to take
Expand Down Expand Up @@ -6688,6 +6689,7 @@ function extend$1() {
/**
* A more semantic convenience function. Delegates to {@link helpers#extend} and passes `true` as the first argument. Recursively merge the contents of two or more objects together into the first object.
*
* @function deepExtend
* @param {Object} destination The object to modify
* @param {Object} source The object whose contents to take
* @param {Object} [source2] Optional, You can add any number of objects as arguments.
Expand Down Expand Up @@ -6740,6 +6742,8 @@ function extname(filename) {

/**
* Given a `fileName` return its file extension. Used internally by `.discernPaser` and `.discernFileFormatter`.
*
* @function discernFormat
* @param {String} fileName the name of the file
* @returns {String} the file's extension
*
Expand All @@ -6757,6 +6761,8 @@ function discernFormat(fileName) {

/**
* Returns a formatter that will format json data to file type specified by the extension in `fileName`. Used internally by `.writeData` and `.writeDataSync`.
*
* @function discernFileFormatter
* @param {String} fileName the name of the file
* @returns {Object} a formatter that can write the file
*
Expand Down Expand Up @@ -8716,6 +8722,8 @@ formatsList.forEach(function (format) {

/**
* Given a `fileName` return a parser that can read that file as json. Parses as text if format not supported by a built-in parser. If given a delimter string as the second argument, return a parser for that delimiter regardless of `fileName`. Used internally by `.readData` and `.readDataSync`.
*
* @function discernParser
* @param {String} fileName the name of the file
* @param {String} delimiter Alternative usage is to pass a delimiter string. Delegates to `dsv.dsvFormat`.
* @returns {Object} a parser that can read the file
Expand All @@ -8742,6 +8750,7 @@ function discernParser(fileName, delimiter) {
/**
* Test whether a file name has the given extension
*
* @function extMatchesStr
* @param {String} fileName The name of the file.
* @param {String} extension The extension to test. An empty string will match a file with no extension.
* @returns {Boolean} whether The extension matched or not.
Expand Down Expand Up @@ -8771,6 +8780,7 @@ function getParser(delimiterOrParser) {
/**
* Test whether a string matches a given Regular Expression.
*
* @function matchesRegExp
* @param {String} fileName The name of the file or file path.
* @param {RegExp} RegEx The RegEx to match with.
* @returns {Boolean} whether The string matches the RegEx.
Expand All @@ -8793,6 +8803,7 @@ function isRegExp$1(obj) {
/**
* Test whether a file name or path matches a given matcher. Delegates to {@link helpers#extMatches} if `matcher` is a string` and tests only against the file name extension. Delegates to {@link helpers#extMatchRegEx} if matcher is a Regular Expression and tests against entire string, which is usefulf or testing the full file path.
*
* @function matches
* @param {String} fileName The name of the file or path to the file.
* @returns {String} matcher The string to match with.
*
Expand Down
Loading

0 comments on commit 64c62cc

Please sign in to comment.