Comparing version 0.4.1 to 1.0.0
{ | ||
"name": "datefmt", | ||
"version": "0.4.1", | ||
"version": "1.0.0", | ||
"description": "Date format lib", | ||
"main": "dist/dateformat.js", | ||
"module": "index.js", | ||
"scripts": { | ||
"start": "scriptkit", | ||
"build": "scriptkit build", | ||
"dev": "scriptkit dev", | ||
"test": "cat test/datefmt.test.dist.js | tape-run --static . --browser phantomjs --render tap-spec", | ||
"prepublishOnly": "scriptkit" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/firstandthird/datefmt" | ||
}, | ||
"author": "First+Third", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/firstandthird/datefmt/issues" | ||
}, | ||
"homepage": "https://github.com/firstandthird/datefmt#readme", | ||
"devDependencies": { | ||
"fatjs": "~0.1.0", | ||
"grunt": "~0.4.2" | ||
"eslint": "^5.8.0", | ||
"eslint-config-firstandthird": "^4.3.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"phantomjs-prebuilt": "^2.1.16", | ||
"scriptkit": "^1.0.0", | ||
"tap-spec": "^5.0.0", | ||
"tape-rollup": "^4.6.4", | ||
"tape-run": "^4.0.0" | ||
}, | ||
"eslintConfig": { | ||
"env": { | ||
"browser": true | ||
}, | ||
"extends": "firstandthird" | ||
}, | ||
"scriptkit": { | ||
"files": { | ||
"dist/datefmt.js": "index.js", | ||
"test/datefmt.test.dist.js": "test/datefmt.test.js" | ||
}, | ||
"scripts": { | ||
"babel": { | ||
"exclude": [ | ||
"node_modules/tape-rollup/*" | ||
] | ||
} | ||
} | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
#dateformat | ||
#datefmt | ||
@@ -10,14 +10,14 @@ Date format lib | ||
```javascript | ||
var date = new Date(2013, 4, 8); | ||
dateFormat('%j %D %l', date); // 8 Wed Wednesday | ||
const date = new Date(2013, 4, 8); | ||
datefmt('%j %D %l', date); // 8 Wed Wednesday | ||
``` | ||
```javascript | ||
var date = new Date(2013, 0, 6); | ||
var months = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre']; | ||
var days = ['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo']; | ||
const date = new Date(2013, 0, 6); | ||
const months = ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre']; | ||
const days = ['Lunes', 'Martes', 'Miércoles', 'Jueves', 'Viernes', 'Sábado', 'Domingo']; | ||
dateFormat.translate(months, days); | ||
dateFormat('%F', date); //Enero | ||
dateFormat('%l', date); //Lunes | ||
datefmt.translate(months, days); | ||
datefmt('%F', date); //Enero | ||
datefmt('%l', date); //Lunes | ||
``` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
Found 1 instance in 1 package
682193
6515
1
0
8
10
8
3