@fav/type.to-date
Version:
Convert a string in various date format to a date object.
60 lines (59 loc) • 1.9 kB
JSON
{
"name": "@fav/type.to-date",
"version": "1.0.2",
"description": "Convert a string in various date format to a date object.",
"main": "index.js",
"files": [
"index.js",
"lib/",
"web/"
],
"scripts": {
"lint": "eslint .",
"test": "mocha test test/lib",
"coverage": "nyc --reporter=lcov --reporter=text-summary npm test",
"coveralls": "nyc --reporter=text-lcov npm test | coveralls",
"web:build": "npm run web:build-src && npm run web:build-test",
"web:build-src": "browserify index.js --standalone fav.type.to-date -o web/fav.type.to-date.js && cd web && uglifyjs fav.type.to-date.js --compress --mangle -o fav.type.to-date.min.js --source-map url=fav.type.to-date.min.js.map",
"web:build-test": "node tool/mktest.js",
"chrome:install": "npm i --no-save mocha-chrome",
"chrome:test": "mocha-chrome test/web/browser-test.html",
"phantom:install": "npm i --no-save phantomjs-prebuilt mocha-phantomjs",
"phantom:test": "mocha-phantomjs -p node_modules/.bin/phantomjs test/web/browser-test.html",
"build": "npm run lint && npm run coverage && npm run web:build"
},
"repository": {
"type": "git",
"url": "git+https://github.com/sttk/fav-type.to-date.git"
},
"keywords": [
"date",
"rfc2822",
"rfc3339",
"iso8601",
"to-date",
"type",
"datatype",
"fav"
],
"author": "Takayuki Sato",
"license": "MIT",
"bugs": {
"url": "https://github.com/sttk/fav-type.to-date/issues"
},
"homepage": "https://github.com/sttk/fav-type.to-date#readme",
"dependencies": {
"@fav/type.is-string": "^1.0.1",
"@fav/type.is-valid-date": "^1.0.1"
},
"devDependencies": {
"@xslet/platform": "^0.2.0",
"browserify": "^16.1.0",
"chai": "^3.5.0",
"coveralls": "^3.0.0",
"eslint": "^4.8.0",
"mocha": "^3.5.3",
"nyc": "^11.2.1",
"uglify-js": "^3.1.3"
}
}