Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Как использовать этот пакет? #2

Closed
squalsoft opened this issue Apr 22, 2019 · 1 comment
Closed

Как использовать этот пакет? #2

squalsoft opened this issue Apr 22, 2019 · 1 comment

Comments

@squalsoft
Copy link
Contributor

squalsoft commented Apr 22, 2019

Добрый день! Хотелось бы какой-то пример, как использовать этот пакет? Не получается подключить его в существующий проект.
Я так понял, что надо вместо const w = require('./bindings'); в файле index.js у себя подключать так:
const w = require("node-atol-wrapper");
А далее использовать, как и в index.js?

@farafonov-alexey
Copy link
Owner

Добрый день. Да, конечно, именно так.

Меняется только:
const wrapperAtol = require('node-atol-wrapper');

Затем создается объект:
const fptr = new wrapperAtol.Fptr10();

И у fptr вызываются функции, описанные в README (create, destroy, ...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants