aboutsummaryrefslogtreecommitdiff
path: root/node_modules/xml2js/lib/processors.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-05-27 17:36:13 +0200
commit5f466137ad6ac596600e3ff53c9b786815398445 (patch)
treef914c221874f0b16bf3def7ac01d59d1a99a3b0b /node_modules/xml2js/lib/processors.js
parentc9f5ac8e763eda19aa0564179300cfff76785435 (diff)
node_modules, clean up package.json
Diffstat (limited to 'node_modules/xml2js/lib/processors.js')
-rw-r--r--node_modules/xml2js/lib/processors.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/node_modules/xml2js/lib/processors.js b/node_modules/xml2js/lib/processors.js
deleted file mode 100644
index 31ccde280..000000000
--- a/node_modules/xml2js/lib/processors.js
+++ /dev/null
@@ -1,34 +0,0 @@
-// Generated by CoffeeScript 1.10.0
-(function() {
- "use strict";
- var prefixMatch;
-
- prefixMatch = new RegExp(/(?!xmlns)^.*:/);
-
- exports.normalize = function(str) {
- return str.toLowerCase();
- };
-
- exports.firstCharLowerCase = function(str) {
- return str.charAt(0).toLowerCase() + str.slice(1);
- };
-
- exports.stripPrefix = function(str) {
- return str.replace(prefixMatch, '');
- };
-
- exports.parseNumbers = function(str) {
- if (!isNaN(str)) {
- str = str % 1 === 0 ? parseInt(str, 10) : parseFloat(str);
- }
- return str;
- };
-
- exports.parseBooleans = function(str) {
- if (/^(?:true|false)$/i.test(str)) {
- str = str.toLowerCase() === 'true';
- }
- return str;
- };
-
-}).call(this);