Socket
Socket
Sign inDemoInstall

abstract-presets

Package Overview
Dependencies
3
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    abstract-presets

Abstract preset manager.


Version published
Maintainers
1
Created

Readme

Source

abstract-presets

Abstract preset manager.

npm i abstract-presets pnpm add abstract-presets yarn add abstract-presets

Examples

# node
    # view source example/node.ts

    import { add } from 'abstract-presets'
    
    console.log(add(1, 2))
    

# web
    # view source example/web.ts

    import { add } from 'abstract-presets'
    
    const main = document.querySelector('main')!
    
    main.innerHTML = `<h1>1 + 2 = ${add(1, 2)}</h1>`
    

🥁 Use this template 🥁

Features

  • TypeScript with SWC
  • JSX/TSX out of the box
  • Outputs both CommonJS and ES Modules, ready to publish on npm
  • Automatic dist bundling using bunzee
  • Documentation generation using dokio
  • Isomorphic Node.js and real browser testing incl. coverage and snapshots with utr
  • Examples / Playground using devito
  • Evergreen using pull-configs
  • ESLint
  • dprint
  • Husky

API

# AbstractDetail src/abstract-presets.ts#L31
# BasePreset src/abstract-presets.ts#L7
# BasePresets src/abstract-presets.ts#L67
# PresetsGroupDetail src/presets-group-detail.ts#L8
# BasePresetsEvents src/abstract-presets.ts#L56

    # select src/abstract-presets.ts#L57

      # (next, prev, nextDetail, prevDetail, byClick, byGroup)

        # next
        # prev
        # nextDetail
        # prevDetail
        # byClick

          undefined | boolean

        # byGroup

          undefined | boolean

        (next, prev, nextDetail, prevDetail, byClick, byGroup)  =>

    # PresetsGroupData src/presets-group-detail.ts#L4

    Credits

    Contributing

    Fork or edit and submit a PR.

    All contributions are welcome!

    License

    MIT © 2022 stagas

    FAQs

    Last updated on 07 Dec 2022

    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