klaus-require

Import/Load/Require module from 64 base string

Usage no npm install needed!

<script type="module">
  import klausRequire from 'https://cdn.skypack.dev/klaus-require';
</script>

README

Require From Web

Import/Load/Require module from url

Installation

Module available through the npm registry. It can be installed using the npm or yarn command line tools.

# NPM
npm install klaus-require --save
# Or Using Yarn
yarn add klaus-require

Example

work on progress

Documentation

Options :: requireFromWeb(url, axiosOptions, code)

url

Base 64 module Url of file.

Type: String

axiosOptions**

Config/option of Axios.

Type: Object

code

Add more code in end script.

Type: String

Tests

To run the test suite, first install the dependencies, then run test:

# NPM
npm test
# Or Using Yarn
yarn test

Dependencies

  • axios: Promise based HTTP client for the browser and node.js

Dev Dependencies

  • xo: JavaScript happiness style linter ❤️

Contributors

License

MIT © Tiago Danin