@pdz/df

1.0.1 • Public • Published

Distant function loader for NodeJS

Example:

const pdzDF = require('@pdz/df');

pdzDF('https://example_url_to_function_content').then(func => func.call({ test: true }, 1, 2, 3)).catch(console.error);

// Example function content (from https://example_url_to_function_content):
// console.log(this, Array.from(arguments));

// Example result:
// { test: true } [ 1, 2, 3 ]

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.0.10latest

Version History

VersionDownloads (Last 7 Days)Published
1.0.10
1.0.00

Package Sidebar

Install

npm i @pdz/df

Weekly Downloads

0

Version

1.0.1

License

ISC

Unpacked Size

2.4 kB

Total Files

4

Last publish

Collaborators

  • pdz