https://github.com/divriots/studio-matter-helper
TS Template for es-modules
https://github.com/divriots/studio-matter-helper
Last synced: about 1 month ago
JSON representation
TS Template for es-modules
- Host: GitHub
- URL: https://github.com/divriots/studio-matter-helper
- Owner: divriots
- Created: 2021-07-30T19:14:35.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-18T18:02:42.000Z (almost 5 years ago)
- Last Synced: 2025-03-01T14:16:51.889Z (over 1 year ago)
- Language: TypeScript
- Homepage: https://components.studio/view/8x1wdtT2IQXQ4xlxYsED
- Size: 2.93 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Template ES Module
This is a template for creating ES Module
## Table of Contents
- [Install](#install)
- [Usage](#usage)
## Install
This project uses [npm](https://npmjs.com). Go check them out if you don't have them locally installed.
```sh
$ npm install --save template-module-ts
```
```javascript
// using ES6 modules
import { countLetter } from "@wcd/template-module-ts";
```
or
```html
```
## Usage
```js
import { countLetter } from "@wcd/template-module-ts";
const hello_world_count = countLetter("Hello world");
// get count of a particular letter
hello_world_count["w"];
```