ladjs / dayjs-with-plugins Goto Github PK
View Code? Open in Web Editor NEWDay.js with all plugins and locales added out of the box, no need to use dayjs.extend!
Home Page: https://github.com/iamkun/dayjs
License: MIT License
Day.js with all plugins and locales added out of the box, no need to use dayjs.extend!
Home Page: https://github.com/iamkun/dayjs
License: MIT License
Not working because
node_modules/.pnpm/[email protected][email protected]/node_modules/dayjs-with-plugins/lib/index.js
You defined process here
This project is great and worked out of the box.
However, please consider removing BadMutable from the list of plugins.
It breaks the immutability of dayjs objects:
// node.js
const dayjs = require('dayjs-with-plugins') // introduces mutability
//const dayjs = require('dayjs') // uncomment to compare
const now = dayjs();
const tomorrow = now.add(1, 'day');
console.log(now); // << might not be expect
I assume BadMutable is just one of the plugins and it's just there but as it changes such a fundamental concept of dayjs that it would be nice to get at least a little hint.
Personally I would vote to drop the plugin.
There are no types available in this package and @types/dayjs-with-plugins is also not available.
Do you not consider TS relevant, or are you expecting people to somehow reuse the original types from dayjs?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.