Socket
Socket
Sign inDemoInstall

moment-parseplus

Package Overview
Dependencies
2
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.0.1

parseplus.cjs

4

CHANGELOG.md
## Change Log
### v2.0.1 on 2022-11-21
- Export as ESModule
### v2.0.0 on 2022-09-30

@@ -4,0 +8,0 @@

{
"name": "moment-parseplus",
"version": "2.0.0",
"version": "2.0.1",
"description": "Date parsing plugin for momentjs",
"main": "parseplus.js",
"type": "module",
"exports": {
"import": "./parseplus.mjs",
"require": "./parseplus.cjs"
},
"directories": {

@@ -37,5 +41,23 @@ "test": "test"

"devDependencies": {
"@babel/preset-env": "^7.20.2",
"jest": "29.1.2",
"prettier": "2.7.1"
},
"jest": {
"transform": {
"^.+\\.mjs$": "babel-jest"
},
"testMatch": [
"**/*.spec.mjs"
]
},
"babel": {
"env": {
"test": {
"presets": [
"@babel/preset-env"
]
}
}
}
}

16

README.md
# moment-parseplus
[![NPM Link](https://img.shields.io/npm/v/moment-parseplus?v=2.0.0)](https://npm.com/package/moment-parseplus)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/kensnyder/moment-parseplus?branch=master&svg=true&v=2.0.0)](https://ci.appveyor.com/project/kensnyder/moment-parseplus)
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=2.0.0)](https://codecov.io/gh/kensnyder/moment-parseplus)
[![ISC License](https://img.shields.io/npm/l/moment-parseplus.svg?v=2.0.0)](https://opensource.org/licenses/ISC)
[![NPM Link](https://img.shields.io/npm/v/moment-parseplus?v=2.0.1)](https://npm.com/package/moment-parseplus)
[![Build Status](https://ci.appveyor.com/api/projects/status/github/kensnyder/moment-parseplus?branch=master&svg=true&v=2.0.1)](https://ci.appveyor.com/project/kensnyder/moment-parseplus)
[![Code Coverage](https://codecov.io/gh/kensnyder/moment-parseplus/branch/master/graph/badge.svg?v=2.0.1)](https://codecov.io/gh/kensnyder/moment-parseplus)
[![ISC License](https://img.shields.io/npm/l/moment-parseplus.svg?v=2.0.1)](https://opensource.org/licenses/ISC)

@@ -45,4 +45,3 @@ A comprehensive and extensible date parsing plugin for

```js
const moment = require('moment');
require('moment-parseplus');
import { moment } from 'moment-parseplus';

@@ -54,6 +53,7 @@ const date1 = moment('March 5th, 2016 at 7:05pm');

Or, for convenience, you can just import `moment` from `moment-parseplus`:
Or you can explicitly import `moment` separately from `moment-parseplus`:
```js
import { moment } from 'moment-parseplus';
import moment from 'moment';
import 'moment-parseplus';

@@ -60,0 +60,0 @@ const date1 = moment('March 5th, 2016 at 7:05pm');

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc