Skip to content

Commit 0853ba6

Browse files
committed
fix: Renames package for NPM publish
1 parent ba7a0de commit 0853ba6

6 files changed

+19
-19
lines changed

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
{
2-
"name": "basr",
2+
"name": "baseroo",
33
"version": "0.0.0-development",
44
"description": "Converts values from one base to another between 2-62",
55
"repository": {
66
"type": "git",
7-
"url": "https://github.com/ryansmith94/basr.git"
7+
"url": "https://github.com/ryansmith94/baseroo.git"
88
},
99
"type": "module",
10-
"source": "src/basr.ts",
10+
"source": "src/baseroo.ts",
1111
"exports": {
12-
"require": "./dist/basr.cjs",
13-
"default": "./dist/basr.modern.js"
12+
"require": "./dist/baseroo.cjs",
13+
"default": "./dist/baseroo.modern.js"
1414
},
15-
"main": "dist/basr.cjs",
16-
"module": "dist/basr.module.js",
17-
"unpkg": "dist/basr.umd.js",
18-
"typings": "dist/basr.d.ts",
15+
"main": "dist/baseroo.cjs",
16+
"module": "dist/baseroo.module.js",
17+
"unpkg": "dist/baseroo.umd.js",
18+
"typings": "dist/baseroo.d.ts",
1919
"author": "ryansmith94",
2020
"license": "MIT",
2121
"files": [

readme.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
11
<div align="center">
2-
<h1>𐄷</br>basr</h1>
2+
<h1>🦘</br>baseroo</h1>
33
<p>Converts values from one base to another between 2-62</p>
44
<a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-d9207b.svg" alt="License: MIT"></a>
55
<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>
66
<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>
7-
<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>
8-
<a href="https://bundlephobia.com/result?p=basr"><img alt="Package size from BundlePhobia" src="https://img.shields.io/bundlephobia/minzip/basr.svg" /></a>
7+
<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>
8+
<a href="https://bundlephobia.com/result?p=baseroo"><img alt="Package size from BundlePhobia" src="https://img.shields.io/bundlephobia/minzip/baseroo.svg" /></a>
99
<div>
1010
</div>
1111
</div>
1212

1313
```ts
14-
// Install it with `npm i basr`
15-
import { convertBase } from 'basr'
14+
// Install it with `npm i baseroo`
15+
import { convertBase } from 'baseroo'
1616

1717
const base16Value = '8f'
1818
const base10Value = convertBase(base16Value, 16, 10) // '143'
1919
```
2020

2121
### Background
2222

23-
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.
23+
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.

src/basr.test.ts src/baseroo.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as assert from 'assert'
2-
import { convertBase, InvalidDigitError } from './basr'
2+
import { convertBase, InvalidDigitError } from './baseroo'
33

44
test('convertBase should convert base 16 to 10', () => {
55
const input = '8f'

src/basr.ts src/baseroo.ts

File renamed without changes.

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
"sourceMap": true
1212
},
1313
"include": ["./src/**/*.ts"],
14-
"files": ["src/basr.ts"]
14+
"files": ["src/baseroo.ts"]
1515
}

0 commit comments

Comments
 (0)