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

@lvchengbin/base-convert

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lvchengbin/base-convert - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

dist/base-convert.bc.js

38

package.json
{
"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;
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