Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

dts-bundle-proxyjs

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dts-bundle-proxyjs

Generates JS proxies from bundled dts.

  • 0.4.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

dts-bundle-proxyjs

NPM version dependencies Status devDependencies Status

Generate js proxy files from dts-bundle file

Get started

Usage

  1. Install from npm:
$ npm install dts-bundle-proxyjs
  1. Run dts-bundle.

  2. After d.ts file bundled, run dts-bundle-proxyjs.

Features

  • Creates JS proxy from bundled dts.

Usage

$ dts-bundle-proxyjs --help

Examples

Using config: Default config is dts-bundle.js.

$ dts-bundle-proxy -c dts-bundle.json

Config

Example JSON

{
    "name": "example-lib",
    "main": "./dist/index.d.ts",
    "out": "./dist/example-lib.d.ts",
    "removeSource": true,
    "proxyjs": {
      "default": "Hello",
      "generateDir": "./dist",
      "requireFile": "./dist/build.js",
      "exportAsDefault": true
    }
}

Explanation

proxyjs part:

ArgumentTypeDefaultDescription
defaultstringnoneParts that must be included.
generateDir *stringnoneParts that will be generated js files.
requireFile *stringnoneBundled js file from where proxy will be made.
exportAsDefaultbooltrueGenerated js files exported as default.

* - Required.

License

Released under the PGL-3.0 license.

FAQs

Package last updated on 18 Aug 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc