Coder Social home page Coder Social logo

Node bindings and npm about hext HOT 5 CLOSED

html-extract avatar html-extract commented on June 14, 2024
Node bindings and npm

from hext.

Comments (5)

samatt avatar samatt commented on June 14, 2024 1

just writing to confirm npm install hext works! thanks again!

from hext.

thomastrapp avatar thomastrapp commented on June 14, 2024

I will definitely try to fix the build for Node v10/v11 in the coming days.

any plans to put this up on an NPM registry?

Yes. It would be great if Hext was easily installable through npm, just like with pip.
I will look into it in the next couple of weeks.

Thank you for the kind words!

from hext.

thomastrapp avatar thomastrapp commented on June 14, 2024

The Hext language bindings for Node are now compatible with nodejs v8, v10 and v11:

cd hext/libhext/bindings/nodejs
npm install
npm run build
# run tests
./test/blackbox.js.sh ../../../../test/case/*hext

@samatt Thank you for the bug report - Please let me know if there are more problems.

I will leave this issue open for the npm package.

from hext.

samatt avatar samatt commented on June 14, 2024

omg that totally worked! thanks for your insanely fast response!

from hext.

thomastrapp avatar thomastrapp commented on June 14, 2024

Hext for Node is now installable through npm:

npm install hext

(Does not include the htmlext command-line utility).

Compatibility

  • Node v8, v10, v11
  • Linux (GLIBC ≥2.14, basically any distribution built after the year 2012)
  • Mac OS X (10.11 El Capitan or later)
  • x86_64 only

https://www.npmjs.com/package/hext

Note: The Hext npm package starts at version 10. Earlier versions refer to a deprecated package of a previous owner. Npm's support is awesome and moved the package to my account.

Testing

An easy way to test an npm install is to run the following:

mkdir /tmp/hext-test
cd /tmp/hext-test
npm install hext
node -e 'require("hext")' && echo "hext loaded successfully"
git clone https://github.com/thomastrapp/hext.git
cd hext/test
cp ../libhext/bindings/nodejs/htmlext.js .
HTMLEXT="node htmlext.js" ./blackbox.sh case/*hext

@samatt I am closing this issue, but feel free to comment or open a new issue.

from hext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.