
Security News
Node.js TSC Votes to Stop Distributing Corepack
Corepack will be phased out from future Node.js releases following a TSC vote.
JavaScript date format tester.
Install the module with: npm install formatjs
var formatjs = require('./formatjs');
formatjs.test('12/04', 'YYYY/MM'); // false
formatjs.test('2012/04', 'YYYY/MM'); // true
Download the production version or the development version.
In your web page:
<script src="dist/formatjs.min.js"></script>
<script>
formatjs.test('12/04', 'YYYY/MM'); // false
formatjs.test('2012/04', 'YYYY/MM'); // true
</script>
In your web page using AMD loader:
<script>
require(['formatjs'], function(formatjs) {
formatjs.test('12/04', 'YYYY/MM'); // false
formatjs.test('2012/04', 'YYYY/MM'); // true
});
</script>
Install nodejs.
Install coffee-script with: npm install -g coffee-script
.
Install dependencies with: npm install
.
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Test your code using grunt.
Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!
Copyright (c) 2012 nowamasa
Licensed under the MIT license.
FAQs
JavaScript date format tester.
The npm package formatjs receives a total of 3,232 weekly downloads. As such, formatjs popularity was classified as popular.
We found that formatjs 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
Corepack will be phased out from future Node.js releases following a TSC vote.
Research
Security News
Research uncovers Black Basta's plans to exploit package registries for ransomware delivery alongside evidence of similar attacks already targeting open source ecosystems.
Security News
Oxlint's beta release introduces 500+ built-in linting rules while delivering twice the speed of previous versions, with future support planned for custom plugins and improved IDE integration.