Skip to content

Commit

Permalink
Everyone else uses mod.ts, so do the same
Browse files Browse the repository at this point in the history
  • Loading branch information
rdmurphy committed Mar 2, 2023
1 parent 3ed3404 commit a621fba
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
run: deno lint

- name: Cache dependencies
run: deno cache main.ts main_test.ts
run: deno cache mod.ts mod_test.ts

- name: Run tests
run: deno test --allow-read
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ data/
After `import`'ing `quaff`:

```ts
import { load } from "https://deno.land/x/quaff/main.ts";
import { load } from "https://deno.land/x/quaff/mod.ts";

const data = await load("./data/");
console.log(data);
Expand Down Expand Up @@ -81,7 +81,7 @@ It's also possible to load a single file at a time, allowing more custom
approaches in case `load` doesn't work exactly the way you'd like.

```ts
import { loadFile } from "https://deno.land/x/quaff/main.ts";
import { loadFile } from "https://deno.land/x/quaff/mod.ts";

const data = await loadFile("./data/mammals/bears.csv");
console.log(data);
Expand Down
2 changes: 1 addition & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"tasks": {
"dev": "deno run --watch main.ts"
"dev": "deno run --watch mod.ts"
},
"fmt": {
"files": {
Expand Down
4 changes: 2 additions & 2 deletions main.ts → mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* After importing `quaff`:
*
* ```ts
* import { load } from "https://deno.land/x/quaff/main.ts";
* import { load } from "https://deno.land/x/quaff/mod.ts";
*
* const data = await load("./data/");
* console.log(data);
Expand Down Expand Up @@ -67,7 +67,7 @@
* approaches in case `load` doesn't work exactly the way you'd like.
*
* ```ts
* import { loadFile } from "https://deno.land/x/quaff/main.ts";
* import { loadFile } from "https://deno.land/x/quaff/mod.ts";
*
* const data = await loadFile("./data/mammals/bears.csv");
* console.log(data);
Expand Down
2 changes: 1 addition & 1 deletion main_test.ts → mod_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
assertEquals,
assertRejects,
} from "https://deno.land/std@0.178.0/testing/asserts.ts";
import { load, loadFile } from "./main.ts";
import { load, loadFile } from "./mod.ts";
import {
parseArchieML,
parseCsv,
Expand Down

0 comments on commit a621fba

Please sign in to comment.