Comparing version 1.0.0 to 1.1.0
{ | ||
"name": "bic", | ||
"version": "1.0.0", | ||
"description": "BIC (Business Identifier Code) format validator", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "ava --tap | tnyan", | ||
"prepublish": "npm test" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nicolaspayot/bic.git" | ||
}, | ||
"keywords": [ | ||
"iso 9362", | ||
"bic", | ||
"bic code", | ||
"business identifier code", | ||
"swift", | ||
"swift-bic", | ||
"swift id", | ||
"swift code" | ||
], | ||
"author": "Nicolas Payot <nicolas.payot@gmail.com> (https://github.com/nicolaspayot)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/nicolaspayot/bic/issues" | ||
}, | ||
"homepage": "https://github.com/nicolaspayot/bic#readme", | ||
"devDependencies": { | ||
"ava": "^0.16.0", | ||
"tap-nyan": "0.0.2" | ||
} | ||
"name": "bic", | ||
"version": "1.1.0", | ||
"description": "BIC (Business Identifier Code) format validator", | ||
"main": "dist/bic.cjs.js", | ||
"module": "dist/bic.esm.js", | ||
"browser": "dist/bic.umd.js", | ||
"scripts": { | ||
"start": "rollup -c -w", | ||
"build": "rimraf dist/ && rollup -c", | ||
"test": "jest", | ||
"prepublish": "yarn test", | ||
"format": "prettier --write src/*.ts", | ||
"lint": "eslint src/*.ts" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/nicolaspayot/bic.git" | ||
}, | ||
"keywords": [ | ||
"iso 9362", | ||
"bic", | ||
"bic code", | ||
"business identifier code", | ||
"swift", | ||
"swift-bic", | ||
"swift id", | ||
"swift code" | ||
], | ||
"author": "Nicolas Payot <nicolas.payot@gmail.com> (https://github.com/nicolaspayot)", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/nicolaspayot/bic/issues" | ||
}, | ||
"homepage": "https://github.com/nicolaspayot/bic#readme", | ||
"devDependencies": { | ||
"@babel/preset-env": "^7.10.4", | ||
"@babel/preset-typescript": "^7.10.4", | ||
"@types/jest": "^26.0.7", | ||
"@typescript-eslint/eslint-plugin": "^3.7.1", | ||
"@typescript-eslint/parser": "^3.7.1", | ||
"@wessberg/rollup-plugin-ts": "^1.2.29", | ||
"eslint": "^7.5.0", | ||
"eslint-config-prettier": "^6.11.0", | ||
"eslint-plugin-import": "^2.22.0", | ||
"jest": "^26.1.0", | ||
"prettier": "^2.0.5", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.23.0", | ||
"rollup-plugin-terser": "^6.1.0", | ||
"typescript": "^3.9.7" | ||
} | ||
} |
@@ -10,2 +10,4 @@ # bic | ||
$ npm install bic --save | ||
# OR | ||
$ yarn add bic | ||
``` | ||
@@ -15,10 +17,29 @@ | ||
```js | ||
var bic = require('bic'); | ||
### In Node.js | ||
```javascript | ||
const bic = require('bic'); | ||
bic.isValid('12345678'); // false | ||
bic.isValid('CHASUS33'); // true | ||
// OR | ||
import bic from 'bic'; | ||
bic.isValid('12345678'); // false | ||
bic.isValid('CHASUS33'); // true | ||
``` | ||
### In browser | ||
```html | ||
<script src="https://cdn.jsdelivr.net/npm/bic@[VERSION_NUMBER]/dist/bic.umd.min.js"></script> | ||
<script> | ||
bic.isValid('12345678'); // false | ||
bic.isValid('CHASUS33'); // true | ||
</script> | ||
``` | ||
## License | ||
The MIT License (MIT) |
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
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
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
3493
44
15
4
0
1