@bititrain/meilman
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Build Status Coverage Status MIT license

Using this module in other modules

Here is a quick example of how this module can be used in other modules. The TypeScript Module Resolution Logic makes it quite easy. The file src/index.ts is a barrel that re-exports selected exports from other files. The package.json file contains main attribute that points to the generated lib/index.js file and typings attribute that points to the generated lib/index.d.ts file.

  • To use the MeilMan class in a TypeScript file -
import { MeilMan } from "@bititrain/meilman";

const MeilMan = new MeilMan("TELEGRAM_TOKEN", "BOT_WEBHOOK_URL");
  • To use the MeilMan class in a JavaScript file -
const MeilMan = require('@bititrain/meilman').MeilMan;

const MeilMan = new MeilMan("TELEGRAM_TOKEN", "BOT_WEBHOOK_URL");

Readme

Keywords

Package Sidebar

Install

npm i @bititrain/meilman

Weekly Downloads

0

Version

1.1.4

License

MIT

Last publish

Collaborators

  • mautematico