load-source
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

load-source

A simple function for load js/image/css/style

NPM version Codacy Badge Test coverage npm download gzip License

Sonar

Installing

# use pnpm
$ pnpm install load-source

# use npm
$ npm install load-source --save

# use yarn
$ yarn add load-source

Usage

General use

import loadSource from 'load-source'

loadSource('js/image/css/style', options)
  1. by require
const loadSource = require('load-source')

loadSource('js/image/css/style', options)

Use CDN resource

<!-- head -->
<script src="https://unpkg.com/load-source@1.2.0/dist/index.global.prod.js"></script>

Support & Issues

Please open an issue here.

License

MIT

Package Sidebar

Install

npm i load-source

Weekly Downloads

30

Version

1.2.0

License

MIT

Unpacked Size

43.1 kB

Total Files

11

Last publish

Collaborators

  • saqqdy