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

moment-random

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

moment-random - npm Package Compare versions

Comparing version 0.9.1 to 1.0.0

15

package.json
{
"name": "moment-random",
"version": "0.9.1",
"version": "1.0.0",
"author": "Ivan Mrvelj <sk8raid@gmail.com>",

@@ -14,8 +14,5 @@ "description": "Generates a random momentjs object",

"precommit": "npm test",
"prepublish": "npm run dist",
"build": "babel --copy-files --out-dir dist --ignore *.test.js src",
"build:umd": "webpack --config ./config/webpack.config.js",
"build:umd:watch": "webpack --watch --config ./config/webpack.config.js",
"dist": "rm -rf dist/; npm run build; npm run build:umd",
"serve": "webpack-dev-server --inline --config ./config/webpack.dev.js",
"prepublish": "npm run build",
"build": "rimraf dist/ && webpack --config ./config/webpack.config.js",
"demo": "webpack-dev-server --inline --config ./config/webpack.dev.js",
"test": "jest --coverage",

@@ -25,2 +22,3 @@ "test:watch": "jest --watch"

"files": [
"src",
"dist",

@@ -50,3 +48,2 @@ "README.md"

"devDependencies": {
"babel-cli": "^6.18.0",
"babel-eslint": "^7.1.0",

@@ -56,3 +53,2 @@ "babel-jest": "^19.0.0",

"babel-preset-env": "^1.4.0",
"babel-register": "^6.18.0",
"eslint": "^3.9.1",

@@ -62,2 +58,3 @@ "eslint-plugin-jest": "^19.0.1",

"jest": "^19.0.2",
"rimraf": "^2.6.1",
"webpack": "^2.4.1",

@@ -64,0 +61,0 @@ "webpack-dev-server": "^2.4.2"

23

README.md

@@ -0,3 +1,6 @@

# moment-random
![Build Status](https://travis-ci.org/imrvelj/moment-random.svg?branch=master)
# moment-random
> Generates a new random moment.js object

@@ -7,11 +10,17 @@

npm or yarn
```
$ npm install --save moment-random
```
```
$ yarn add moment-random
```
### Usage
## Usage
Basic
```
---
Just require it like any other library
```js
const momentRandom = require('moment-random');

@@ -22,5 +31,7 @@

```
---
```
You can also specify an interval
```js
momentRandom(end, start)
// > random date between start and end dates
```

@@ -27,0 +38,0 @@

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