Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including javascript-gl with all npm packages installed. Try it out:

var javascriptGl = require("javascript-gl")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

javascript-gl v0.0.1

es-module webGL api wrapper

javascript-gl

хелпер для работы с WebGL

Установка

$ npm install javascript-gl

Надо настроить в вашем сервере резолв с /javascript-gl в node_modules/javascript-gl

  <script type="importmap">
  {
    "imports": {
      "javascript-gl": "/javascript-gl/index.js"
    }
  }
  </script>

Использование

import GL from 'javascript-gl';

...
RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free