Socket
Book a DemoInstallSign in
Socket

abstract-presets

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abstract-presets

Abstract preset manager.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
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)  =>

          void

# 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

Package last updated on 07 Dec 2022

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.