aboutsummaryrefslogtreecommitdiff
path: root/node_modules/to-iso-string
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/to-iso-string')
-rw-r--r--node_modules/to-iso-string/.npmignore3
-rw-r--r--node_modules/to-iso-string/History.md9
-rw-r--r--node_modules/to-iso-string/Makefile17
-rw-r--r--node_modules/to-iso-string/Readme.md18
-rw-r--r--node_modules/to-iso-string/component.json9
-rw-r--r--node_modules/to-iso-string/index.js40
-rw-r--r--node_modules/to-iso-string/package.json11
-rw-r--r--node_modules/to-iso-string/test/index.js10
8 files changed, 0 insertions, 117 deletions
diff --git a/node_modules/to-iso-string/.npmignore b/node_modules/to-iso-string/.npmignore
deleted file mode 100644
index 665aa2197..000000000
--- a/node_modules/to-iso-string/.npmignore
+++ /dev/null
@@ -1,3 +0,0 @@
-components
-build
-node_modules
diff --git a/node_modules/to-iso-string/History.md b/node_modules/to-iso-string/History.md
deleted file mode 100644
index f23b31e8c..000000000
--- a/node_modules/to-iso-string/History.md
+++ /dev/null
@@ -1,9 +0,0 @@
-
-0.0.2 - May 12, 2015
---------------------
-
-- Fix npm publish issue
-
-0.0.1 - October 16, 2013
-------------------------
-:sparkles:
diff --git a/node_modules/to-iso-string/Makefile b/node_modules/to-iso-string/Makefile
deleted file mode 100644
index 9600296b2..000000000
--- a/node_modules/to-iso-string/Makefile
+++ /dev/null
@@ -1,17 +0,0 @@
-
-build: components node_modules
- @component build --dev
-
-clean:
- @rm -rf components build node_modules
-
-components: component.json
- @component install --dev
-
-node_modules: package.json
- @npm install
-
-test: build
- @./node_modules/.bin/mocha --reporter spec
-
-.PHONY: clean test \ No newline at end of file
diff --git a/node_modules/to-iso-string/Readme.md b/node_modules/to-iso-string/Readme.md
deleted file mode 100644
index 905b8d636..000000000
--- a/node_modules/to-iso-string/Readme.md
+++ /dev/null
@@ -1,18 +0,0 @@
-
-# to-iso-string
-
- Cross-browser toISOString support.
-
-## Example
-
-```js
-var iso = require('to-iso-string');
-var date = new Date("05 October 2011 14:48 UTC");
-
-iso(date);
-// "2011-10-05T14:48:00.000Z"
-```
-
-## License
-
- MIT \ No newline at end of file
diff --git a/node_modules/to-iso-string/component.json b/node_modules/to-iso-string/component.json
deleted file mode 100644
index f5270b58b..000000000
--- a/node_modules/to-iso-string/component.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "name": "to-iso-string",
- "repo": "segmentio/to-iso-string",
- "version": "0.0.2",
- "license": "MIT",
- "description": "Cross-browser toISOString support.",
- "keywords": ["iso", "format", "iso8601", "date", "isostring", "toISOString"],
- "scripts": ["index.js"]
-}
diff --git a/node_modules/to-iso-string/index.js b/node_modules/to-iso-string/index.js
deleted file mode 100644
index 4675691f1..000000000
--- a/node_modules/to-iso-string/index.js
+++ /dev/null
@@ -1,40 +0,0 @@
-
-/**
- * Expose `toIsoString`.
- */
-
-module.exports = toIsoString;
-
-
-/**
- * Turn a `date` into an ISO string.
- *
- * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString
- *
- * @param {Date} date
- * @return {String}
- */
-
-function toIsoString (date) {
- return date.getUTCFullYear()
- + '-' + pad(date.getUTCMonth() + 1)
- + '-' + pad(date.getUTCDate())
- + 'T' + pad(date.getUTCHours())
- + ':' + pad(date.getUTCMinutes())
- + ':' + pad(date.getUTCSeconds())
- + '.' + String((date.getUTCMilliseconds()/1000).toFixed(3)).slice(2, 5)
- + 'Z';
-}
-
-
-/**
- * Pad a `number` with a ten's place zero.
- *
- * @param {Number} number
- * @return {String}
- */
-
-function pad (number) {
- var n = number.toString();
- return n.length === 1 ? '0' + n : n;
-} \ No newline at end of file
diff --git a/node_modules/to-iso-string/package.json b/node_modules/to-iso-string/package.json
deleted file mode 100644
index 71a7168a5..000000000
--- a/node_modules/to-iso-string/package.json
+++ /dev/null
@@ -1,11 +0,0 @@
-{
- "name": "to-iso-string",
- "repository": "git://github.com/segmentio/to-iso-string.git",
- "version": "0.0.2",
- "license": "MIT",
- "description": "Cross-browser toISOString support.",
- "keywords": ["iso", "format", "iso8601", "date", "isostring", "toISOString"],
- "devDependencies": {
- "mocha": "*"
- }
-}
diff --git a/node_modules/to-iso-string/test/index.js b/node_modules/to-iso-string/test/index.js
deleted file mode 100644
index 11456b37f..000000000
--- a/node_modules/to-iso-string/test/index.js
+++ /dev/null
@@ -1,10 +0,0 @@
-
-var assert = require('assert');
-var iso = require('..');
-
-describe('to-iso-string', function () {
- it('should work', function () {
- var date = new Date("05 October 2011 14:48 UTC");
- assert('2011-10-05T14:48:00.000Z' == iso(date));
- });
-}); \ No newline at end of file