Skip to content

Commit

Permalink
fix: Renames package for NPM publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ryasmi committed Jan 5, 2023
1 parent ba7a0de commit 0853ba6
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 19 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
12 changes: 6 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<div align="center">
<h1>𐄷</br>basr</h1>
<h1>🦘</br>baseroo</h1>
<p>Converts values from one base to another between 2-62</p>
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-d9207b.svg" alt="License: MIT"></a>
<a href="https://github.com/semantic-release/semantic-release"><img src="https://camo.githubusercontent.com/59c84e3731ad0a45312b47b1546b0972ac4389ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f2532302532302546302539462539332541362546302539462539412538302d73656d616e7469632d2d72656c656173652d6531303037392e737667" alt="Uses Semantic Release to correctly bump versions especially for breaking changes"></a>
<a href="https://renovatebot.com/"><img src="https://img.shields.io/badge/%F0%9F%94%84%F0%9F%A4%96%20-renovate%20bot-d9207b.svg" alt="Uses Renovate to keep dependencies updated"></a>
<a href="https://codecov.io/gh/ryansmith94/basr"><img alt="Main branch coverage percentage from Codecov" src="https://codecov.io/gh/ryansmith94/basr/branch/main/graph/badge.svg" /></a>
<a href="https://bundlephobia.com/result?p=basr"><img alt="Package size from BundlePhobia" src="https://img.shields.io/bundlephobia/minzip/basr.svg" /></a>
<a href="https://codecov.io/gh/ryansmith94/baseroo"><img alt="Main branch coverage percentage from Codecov" src="https://codecov.io/gh/ryansmith94/baseroo/branch/main/graph/badge.svg" /></a>
<a href="https://bundlephobia.com/result?p=baseroo"><img alt="Package size from BundlePhobia" src="https://img.shields.io/bundlephobia/minzip/baseroo.svg" /></a>
<div>
</div>
</div>

```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'
```

### 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.
2 changes: 1 addition & 1 deletion src/basr.test.ts → src/baseroo.test.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"sourceMap": true
},
"include": ["./src/**/*.ts"],
"files": ["src/basr.ts"]
"files": ["src/baseroo.ts"]
}

0 comments on commit 0853ba6

Please sign in to comment.