Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
fecha-locales
Advanced tools
** Installation *** Npm #+begin_src bash npm install --save fecha-locales #+end_src *** Browser #+begin_src html
#+end_src
** Usage
*** Npm
Import/require the locale(s) you need, and put the one you want to use as fecha.i18n
#+begin_src javascript import fr from 'fecha-locales/locales/fr';
fecha.i18n = fr; #+end_src *** Browser For browser,
// In app.js
fecha.i18n = fechaLocales.;
#+end_src
** Credits
All the fecha-locales are built from [[https://github.com/moment/moment][moment.js]]. All credit for collecting the locales go to momentjs. This module uses a small build script to convert moment-locales to fecha friendly locales (i.e which can be put simply as value of fecha.i18n)
** FAQ
*** The locale I need is not present in fecha-locales/locales/ but it is present in moment-locales
All the moment-locales couldn't get converted to fecha. So the ones which failed to convert are placed as fecha-locales/locales/~, but please don't use them. If you need a locale which is present as ~fecha-locales/locales/, please do one of these:
monthsShort
of "es.js". Please fix it manually.
Invalid value for DoFn
of "es.js". Please fix it manually.
#+end_src%dº
, but fecha need it to be a function, so we make it a function instead
return number + 'º';
},
monthsShort: ['enero', 'feb.', 'marzo', 'abr.', 'mayo', 'jun.', 'jul.', 'agosto', 'sept.', 'oct.', 'nov.', 'dic.']
};
#+end_srcFAQs
i18n locales for fecha.js
The npm package fecha-locales receives a total of 37 weekly downloads. As such, fecha-locales popularity was classified as not popular.
We found that fecha-locales demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.