Skip to content

Commit c8c63d7

Browse files
authored
Merge pull request #3 from rafawalter/master
deno.land urls do not have .ts immediately after humanizer
2 parents 0cc6950 + 14a5197 commit c8c63d7

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

README.md

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,20 +31,20 @@ Humanizer meets all your TypeScript needs for manipulating and displaying string
3131
Import the Extensions:
3232

3333
```ts
34-
import "https://deno.land/x/humanizer.ts/byteSize.ts"
35-
import "https://deno.land/x/humanizer.ts/vocabularies.ts"
36-
import "https://deno.land/x/humanizer.ts/ordinalize.ts"
37-
import "https://deno.land/x/humanizer.ts/toQuantity.ts"
38-
import "https://deno.land/x/humanizer.ts/numberToNumbers.ts"
39-
import "https://deno.land/x/humanizer.ts/numberToWords.ts"
40-
import "https://deno.land/x/humanizer.ts/romanNumerals.ts"
41-
import "https://deno.land/x/humanizer.ts/metricNumerals.ts"
34+
import "https://deno.land/x/humanizer/byteSize.ts"
35+
import "https://deno.land/x/humanizer/vocabularies.ts"
36+
import "https://deno.land/x/humanizer/ordinalize.ts"
37+
import "https://deno.land/x/humanizer/toQuantity.ts"
38+
import "https://deno.land/x/humanizer/numberToNumbers.ts"
39+
import "https://deno.land/x/humanizer/numberToWords.ts"
40+
import "https://deno.land/x/humanizer/romanNumerals.ts"
41+
import "https://deno.land/x/humanizer/metricNumerals.ts"
4242
```
4343

4444
## Examples
4545

4646
```ts
47-
import "https://deno.land/x/humanizer.ts/byteSize.ts"
47+
import "https://deno.land/x/humanizer/byteSize.ts"
4848

4949
let result = (10).megabytes().toString()
5050
console.log(result) // -> 10 MB
@@ -57,7 +57,7 @@ Quite a few changes and additions are made on `ByteSize` to make the interaction
5757
Here is a few examples of how you can convert from numbers to byte sizes and between size magnitudes:
5858

5959
```ts
60-
import "https://deno.land/x/humanizer.ts/byteSize.ts"
60+
import "https://deno.land/x/humanizer/byteSize.ts"
6161

6262
let fileSize = (10).kilobytes()
6363
console.log(fileSize.bits) // -> 81920
@@ -93,7 +93,7 @@ console.log(f.toString()) // -> 5.020549774169922 GB
9393
`Pluralize` pluralizes the provided input while taking irregular and uncountable words into consideration:
9494

9595
```ts
96-
import "https://deno.land/x/humanizer.ts/vocabularies.ts"
96+
import "https://deno.land/x/humanizer/vocabularies.ts"
9797

9898
"Man".pluralize() // -> Men
9999
"string".pluralize() // -> "strings"
@@ -112,7 +112,7 @@ import "https://deno.land/x/humanizer.ts/vocabularies.ts"
112112
## <a id="ordinalize">Ordinalize</a>
113113

114114
```ts
115-
import "https://deno.land/x/humanizer.ts/ordinalize.ts"
115+
import "https://deno.land/x/humanizer/ordinalize.ts"
116116

117117
(1).ordinalize() => "1st"
118118
(5).ordinalize() => "5th"
@@ -121,7 +121,7 @@ import "https://deno.land/x/humanizer.ts/ordinalize.ts"
121121
## <a id="toquantity">ToQuantity</a>
122122

123123
```ts
124-
import "https://deno.land/x/humanizer.ts/toQuantity.ts"
124+
import "https://deno.land/x/humanizer/toQuantity.ts"
125125

126126
"case".toQuantity(0) => "0 cases"
127127
"case".toQuantity(1) => "1 case"
@@ -153,7 +153,7 @@ You can also pass a second argument, `ShowQuantityAs`, to `toQuantity` to specif
153153
Humanizer provides a fluent API that produces (usually big) numbers in a clearer fashion:
154154

155155
```ts
156-
import "https://deno.land/x/humanizer.ts/numberToNumbers.ts"
156+
import "https://deno.land/x/humanizer/numberToNumbers.ts"
157157

158158
(1.25).Billions() => 1250000000
159159
(3).Hundreds().Thousands() => 300000
@@ -164,7 +164,7 @@ import "https://deno.land/x/humanizer.ts/numberToNumbers.ts"
164164
Humanizer can change numbers to words using the `toWords` extension:
165165

166166
```ts
167-
import "https://deno.land/x/humanizer.ts/numberToWords.ts"
167+
import "https://deno.land/x/humanizer/numberToWords.ts"
168168

169169
(1).toWords() => "one"
170170
(10).toWords() => "ten"
@@ -176,7 +176,7 @@ import "https://deno.land/x/humanizer.ts/numberToWords.ts"
176176
## Number to ordinal words
177177

178178
```ts
179-
import "https://deno.land/x/humanizer.ts/numberToWords.ts"
179+
import "https://deno.land/x/humanizer/numberToWords.ts"
180180

181181
(0).toOrdinalWords() => "zeroth"
182182
(1).toOrdinalWords() => "first"
@@ -195,7 +195,7 @@ import "https://deno.land/x/humanizer.ts/numberToWords.ts"
195195
Humanizer can change numbers to Roman numerals using the `toRoman` extension. The numbers 1 to 10 can be expressed in Roman numerals as follows:
196196

197197
```ts
198-
import "https://deno.land/x/humanizer.ts/romanNumerals.ts"
198+
import "https://deno.land/x/humanizer/romanNumerals.ts"
199199

200200
(1).toRoman() => "I"
201201
(2).toRoman() => "II"
@@ -224,7 +224,7 @@ Also the reverse operation using the `fromRoman` extension.
224224
Humanizer can change numbers to Metric numerals using the `toMetric` extension. The numbers 1, 1230 and 0.1 can be expressed in Metric numerals as follows:
225225

226226
```ts
227-
import "https://deno.land/x/humanizer.ts/metricNumerals.ts"
227+
import "https://deno.land/x/humanizer/metricNumerals.ts"
228228

229229
(1).toMetric() => "1"
230230
(1230).toMetric() => "1.23k"
@@ -241,4 +241,4 @@ Also the reverse operation using the `fromMetric` extension.
241241

242242

243243
## License
244-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffakoua%2FHumanizer.ts.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffakoua%2FHumanizer.ts?ref=badge_large)
244+
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Ffakoua%2FHumanizer.ts.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Ffakoua%2FHumanizer.ts?ref=badge_large)

localtest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
import { ShowQuantityAs } from "https://deno.land/x/humanizer.ts/toQuantity.ts"
2+
import { ShowQuantityAs } from "https://deno.land/x/humanizer/toQuantity.ts"
33

44
console.log("case".toQuantity(0))
55
console.log("case".toQuantity(1))

0 commit comments

Comments
 (0)