Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hkdigital/jslib--hkd-base
Base library for javascript projects by HKdigital
https://github.com/hkdigital/jslib--hkd-base
Last synced: 26 days ago
JSON representation
Base library for javascript projects by HKdigital
- Host: GitHub
- URL: https://github.com/hkdigital/jslib--hkd-base
- Owner: HKdigital
- License: isc
- Created: 2022-04-12T11:00:59.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-08T09:41:28.000Z (9 months ago)
- Last Synced: 2024-05-08T10:40:47.379Z (9 months ago)
- Language: JavaScript
- Size: 528 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Base library for javascript projects
## About
This library contains base code that gives you a quick start when creating a Javascript application. The code can be run in NodeJS or in a browser.
Most other Javascript libraries created by HKdigital depend on this library.
### Issues
If you encounter problems or have a good idea to make this library better, please create an [issue](https://github.com/HKdigital/jslib-hkd-base/issues).## Setup a project using the Devtool
The [HKdigital devtool](https://github.com/HKdigital/hkdigital-jsdevtool) can be used to setup a NodeJS (backend) or SVELTE (frontend) project from scratch.
### Add libraries to your project
You can add libraries to your project as git submodules.
To add a library (which is a git submodule) to the folder `/lib/jslib--hkd-base`:
```bash
node devtool.mjs lib-add [email protected]:HKdigital/jslib--hkd-base.git
```The devtool includes support for import aliases, so you can refer to library files like this:
```js
import { expectString } from "@hkd-base/helpers/expect.js";
```