diff --git a/package-lock.json b/package-lock.json index 11531d6f..293e00ea 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "basr", + "name": "baseroo", "version": "0.0.0-development", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "basr", + "name": "baseroo", "version": "0.0.0-development", "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index a6f0dc91..b47786f2 100644 --- a/package.json +++ b/package.json @@ -1,21 +1,21 @@ { - "name": "basr", + "name": "baseroo", "version": "0.0.0-development", "description": "Converts values from one base to another between 2-62", "repository": { "type": "git", - "url": "https://github.com/ryansmith94/basr.git" + "url": "https://github.com/ryansmith94/baseroo.git" }, "type": "module", - "source": "src/basr.ts", + "source": "src/baseroo.ts", "exports": { - "require": "./dist/basr.cjs", - "default": "./dist/basr.modern.js" + "require": "./dist/baseroo.cjs", + "default": "./dist/baseroo.modern.js" }, - "main": "dist/basr.cjs", - "module": "dist/basr.module.js", - "unpkg": "dist/basr.umd.js", - "typings": "dist/basr.d.ts", + "main": "dist/baseroo.cjs", + "module": "dist/baseroo.module.js", + "unpkg": "dist/baseroo.umd.js", + "typings": "dist/baseroo.d.ts", "author": "ryansmith94", "license": "MIT", "files": [ diff --git a/readme.md b/readme.md index 98a007ac..414b65a5 100644 --- a/readme.md +++ b/readme.md @@ -1,18 +1,18 @@
-

𐄷
basr

+

🦘
baseroo

Converts values from one base to another between 2-62

License: MIT Uses Semantic Release to correctly bump versions especially for breaking changes Uses Renovate to keep dependencies updated - Main branch coverage percentage from Codecov - Package size from BundlePhobia + Main branch coverage percentage from Codecov + Package size from BundlePhobia
```ts -// Install it with `npm i basr` -import { convertBase } from 'basr' +// Install it with `npm i baseroo` +import { convertBase } from 'baseroo' const base16Value = '8f' const base10Value = convertBase(base16Value, 16, 10) // '143' @@ -20,4 +20,4 @@ const base10Value = convertBase(base16Value, 16, 10) // '143' ### Background -Basr was created from a [2015 Stack Overflow Answer](https://stackoverflow.com/a/32480941/1221906) from a question asking "How do you convert numbers between different bases in JavaScript?". This answer and [the Gist code snippet](https://gist.github.com/ryansmith94/91d7fd30710264affeb9) received some comments requesting some changes, so it was converted to a package with tests and documentation to continue its development and make it easier to use as bug fixes and improvements are made. +Baseroo was created from a [2015 Stack Overflow Answer](https://stackoverflow.com/a/32480941/1221906) from a question asking "How do you convert numbers between different bases in JavaScript?". This answer and [the Gist code snippet](https://gist.github.com/ryansmith94/91d7fd30710264affeb9) received some comments requesting some changes, so it was converted to a package with tests and documentation to continue its development and make it easier to use as bug fixes and improvements are made. diff --git a/src/basr.test.ts b/src/baseroo.test.ts similarity index 91% rename from src/basr.test.ts rename to src/baseroo.test.ts index 402066c8..7ee4b18d 100644 --- a/src/basr.test.ts +++ b/src/baseroo.test.ts @@ -1,5 +1,5 @@ import * as assert from 'assert' -import { convertBase, InvalidDigitError } from './basr' +import { convertBase, InvalidDigitError } from './baseroo' test('convertBase should convert base 16 to 10', () => { const input = '8f' diff --git a/src/basr.ts b/src/baseroo.ts similarity index 100% rename from src/basr.ts rename to src/baseroo.ts diff --git a/tsconfig.json b/tsconfig.json index a8b128be..1febb053 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,5 +11,5 @@ "sourceMap": true }, "include": ["./src/**/*.ts"], - "files": ["src/basr.ts"] + "files": ["src/baseroo.ts"] }