moment-random
Advanced tools
Comparing version 0.9.1 to 1.0.0
{ | ||
"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" |
@@ -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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
11
1
40
3305
3
0