chapter-and-verse
Advanced tools
Comparing version 2.0.2 to 2.0.3
{ | ||
"name": "chapter-and-verse", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Given a bible reference, validates it and returns an object with book, chapter, verse and more", | ||
@@ -9,8 +9,10 @@ "author": "danday74", | ||
"scripts": { | ||
"test": "npm-run-all verify mocha", | ||
"enforcer": "./node_modules/.bin/istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100", | ||
"build": "npm-run-all test enforcer", | ||
"prepush": "npm run build", | ||
"verify": "node verify", | ||
"mocha": "./node_modules/.bin/istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha -- js" | ||
"mocha": "istanbul cover -x \"**/*.spec.js\" ./node_modules/mocha/bin/_mocha -- js", | ||
"test": "npm run verify && npm run mocha", | ||
"enforcer": "istanbul check-coverage --statement 100 --branch 100 --function 100 --line 100", | ||
"build": "npm test && npm run enforcer", | ||
"browserify": "webpack --mode production && node browserify", | ||
"postcommit": "cross-env FORCE_COLOR=true npm run browserify", | ||
"prepush": "npm run build" | ||
}, | ||
@@ -23,9 +25,12 @@ "dependencies": { | ||
"chai-subset": "^1.6.0", | ||
"chalk": "^2.3.1", | ||
"chalk": "^2.3.2", | ||
"coveralls": "2.11.16", | ||
"eslint": "^4.17.0", | ||
"cross-env": "^5.1.4", | ||
"eslint": "^4.18.2", | ||
"husky": "^0.14.3", | ||
"istanbul": "^0.4.5", | ||
"mocha": "^5.0.1", | ||
"npm-run-all": "^4.1.2" | ||
"mocha": "^5.0.4", | ||
"shelljs.exec": "^1.1.7", | ||
"webpack": "^4.1.1", | ||
"webpack-cli": "^2.0.11" | ||
}, | ||
@@ -32,0 +37,0 @@ "keywords": [ |
@@ -29,4 +29,6 @@ # chapter-and-verse | ||
`chapter-and-verse` works both server side and client side. | ||
<br> | ||
@@ -53,3 +55,3 @@ | ||
```npm install --save chapter-and-verse``` | ||
`npm install --save chapter-and-verse` | ||
@@ -104,2 +106,27 @@ Usage: | ||
## Browser usage | ||
`npm install --save chapter-and-verse` | ||
Add a script tag in head: | ||
```HTML | ||
<script src="node_modules/chapter-and-verse/browser.js"></script> | ||
``` | ||
Then use as follows: | ||
```HTML | ||
<script> | ||
const cv = chapterAndVerse('Gn') | ||
console.log(cv.book.name) // Genesis | ||
</script> | ||
``` | ||
You can validate a reference as described in the [Usage](#usage "Jesus loves you") section. | ||
<br> | ||
## Methods | ||
@@ -106,0 +133,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
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
318395
29
715
259
12