Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
ITJesse committed Aug 22, 2023
1 parent 5f65b8f commit f96fa8b
Show file tree
Hide file tree
Showing 5 changed files with 2,366 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
dist
14 changes: 14 additions & 0 deletions index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { createHelia } from 'helia'

import { strings } from '@helia/strings'

const main = async () => {
const helia = await createHelia();
const s = strings(helia);

const myImmutableAddress = await s.add("hello world 1145141919810");
console.log(myImmutableAddress);
console.log(await s.get(myImmutableAddress));
};

main();
16 changes: 16 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "test",
"version": "1.0.0",
"main": "dist/index.js",
"license": "MIT",
"type": "module",
"dependencies": {
"@helia/strings": "^1.0.0",
"helia": "^2.0.1"
},
"devDependencies": {
"ts-node": "^10.9.1",
"tsc": "^2.0.4",
"typescript": "^5.1.6"
}
}
18 changes: 18 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"module": "es2022",
"target": "es2017",

"moduleResolution": "node",
"skipLibCheck": true,
"outDir": "./dist",

"strictNullChecks": true
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
}
Loading

0 comments on commit f96fa8b

Please sign in to comment.