@lvchengbin/base-convert
Advanced tools
Comparing version 0.0.2 to 0.0.3
{ | ||
"name": "@lvchengbin/base-convert", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Convert string in any base.", | ||
"main": "src/index.js", | ||
"main" : "dist/base-convert.cjs.js", | ||
"jsnext": "src/index.js", | ||
"scripts": { | ||
"test": "jest --forceExit", | ||
"tw": "npm run test-watch", | ||
"test-watch": "jest --watch", | ||
"build": "rollup -c", | ||
"watch": "rollup -c -w", | ||
"test": "karma start", | ||
"prepublish": "npm run build", | ||
"lint": "eslint lib --cache --ignore-path .eslintignore", | ||
@@ -31,20 +33,16 @@ "precommit-msg": "echo 'Pre-commit checks...' && exit 0" | ||
"eslint": "^5.16.0", | ||
"jasmine-core": "^3.4.0", | ||
"jest": "^24.8.0", | ||
"pre-commit": "^1.2.2" | ||
"karma": "^4.1.0", | ||
"karma-chrome-launcher": "^2.2.0", | ||
"karma-jasmine": "^2.0.1", | ||
"karma-rollup-preprocessor": "^7.0.0", | ||
"optimist": "^0.6.1", | ||
"pre-commit": "^1.2.2", | ||
"puppeteer": "^1.17.0", | ||
"rollup": "^1.15.6", | ||
"rollup-plugin-buble": "^0.19.6", | ||
"rollup-plugin-node-resolve": "^5.0.3" | ||
}, | ||
"jest": { | ||
"testMatch": [ | ||
"**/test/**/*.spec.js" | ||
], | ||
"coverageReporters": [ | ||
"text-summary", | ||
"text", | ||
"lcov" | ||
], | ||
"collectCoverageFrom": [ | ||
"src/**/*.js" | ||
], | ||
"testEnvironment": "node" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -23,2 +23,11 @@ # @lvchengbin/base-convert | ||
Using as ES6 module. | ||
```js | ||
import convert from '@lvchengbin/base-convert'; | ||
convert( '8492340923842348230482304823', 10, 62 ) ); // b2LE4AbMjns5UHxZ | ||
``` | ||
In web browsers, you can use [base-convert.js](https://raw.githubusercontent.com/LvChengbin/base-convert/master/dist/base-convert.js), and [base-convert.bc.js](https://raw.githubusercontent.com/LvChengbin/base-convert/master/dist/base-convert.bc.js) for browsers doesn't support ES6 syntax. | ||
## API | ||
@@ -25,0 +34,0 @@ |
@@ -52,2 +52,2 @@ /****************************************************************** | ||
module.exports = convert; | ||
export default convert; |
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
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
12801
8
232
85
13
1