Socket
Socket
Sign inDemoInstall

care-js-builder

Package Overview
Dependencies
349
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    care-js-builder

care-js builder


Version published
Weekly downloads
1
Maintainers
1
Install size
23.6 MB
Created
Weekly downloads
 

Readme

Source

Donation ETH 0x8F36c9066435c52053bf4447Cbd837e14ABaf403

For some cases could be useful adding a blacklist of features or generation a polyfill for target engines. This API helps conditionally include or exclude certain parts of care-js, use browserslist queries from care-js-compat package.

require('care-js-builder')({
  modules: ['es', 'esnext.reflect', 'web'],        // modules / namespaces, by default - all `care-js` modules
  blacklist: ['es.math', 'es.number.constructor'], // blacklist of modules / namespaces, by default - empty list
  targets: '> 0.5%',                               // optional browserslist query
  filename: './my-care-js-bundle.js',              // optional target filename, if it's missed a file will not be created
}).then(code => {                                  // code of result polyfill
  // ...
}).catch(error => {
  // ...
});

FAQs

Last updated on 25 Oct 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc