Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

datefmt

Package Overview
Dependencies
Maintainers
8
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

datefmt - npm Package Compare versions

Comparing version 0.4.1 to 1.0.0

.editorconfig

50

package.json
{
"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/*"
]
}
}
}
}

18

README.md

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc