https://github.com/divriots/csf-react-renderer
TS Template for es-modules
https://github.com/divriots/csf-react-renderer
Last synced: 11 months ago
JSON representation
TS Template for es-modules
- Host: GitHub
- URL: https://github.com/divriots/csf-react-renderer
- Owner: divriots
- Created: 2022-07-27T11:04:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-09-30T15:26:17.000Z (over 3 years ago)
- Last Synced: 2025-07-03T20:17:01.096Z (11 months ago)
- Language: TypeScript
- Homepage: https://app.components.studio/view/dmwkQBIkPj0U547ZYlDH
- Size: 13.7 KB
- Stars: 1
- Watchers: 3
- 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"];
```