JSPM

  • Created
  • Published
  • Downloads 26
  • Score
    100M100P100Q56991F
  • License MIT

Node.js TypeScript type definitions for Template-1.0, generated from library version 3.36.1

Package Exports

  • @girs/node-template-1.0

Readme

Template-1.0

Node.js TypeScript type definitions for Template-1.0, generated from library version 3.36.1 using ts-for-gir v3.0.0-beta.13.

Template-GLib is a library to generate text from a template and user defined state. Template-GLib allows you to access properties on GObjects as well as call simple methods via GObject-Introspection Template-GLib does not use a language runtime, so it is safe to use from any GObject-Introspectable language.

Install

To use this type definitions, install them with NPM like this:

npm install @girs/node-template-1.0

Usage

You can import this package into your project like this:

import Template from '@girs/template-1.0';

Or if you prefer CommonJS, you can also use this:

const Template = require('@girs/template-1.0');

If you use ambient modules, you can also import this module like you would do this in JavaScript:

const gi = require('node-gtk')
const Template = gi.require('Template', '1.0')

Depending on your project configuration, it is recommended to use a bundler like esbuild. You can find examples using different bundlers here.