Skip to content

Latest commit

 

History

History
38 lines (25 loc) · 679 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 679 Bytes

Template ES Module

This is a template for creating ES Module

Table of Contents

Install

This project uses npm. Go check them out if you don't have them locally installed.

$ npm install --save template-module-ts
// using ES6 modules
import { countLetter } from "@wcd/template-module-ts";

or

<script type="module" src="https://unpkg.com/@wcd/template-module-ts"></script>

Usage

import { countLetter } from "@wcd/template-module-ts";

const hello_world_count = countLetter("Hello world");

// get count of a particular letter
hello_world_count["w"];