open-index/open-npm huggingface dataset:
npm package: @szld/test
Description: Detect global variables in JavaScript using acorn
Author: ForbesLindesay
Latest version: 1.0.3

# acorn-globals

Detect global variables in JavaScript using acorn

[Get supported acorn-globals with the Tidelift Subscription](https://tidelift.com/subscription/pkg/npm-acorn_globals?utm_source=npm-acorn-globals&utm_medium=referral&utm_campaign=readme)

[![Build Status](https://img.shields.io/travis/ForbesLindesay/acorn-globals/master.svg)](https://travis-ci.org/ForbesLindesay/acorn-globals)
[![Dependency Status](https://img.shields.io/david/ForbesLindesay/acorn-globals.svg)](https://david-dm.org/ForbesLindesay/acorn-globals)
[![NPM version](https://img.shields.io/npm/v/acorn-globals.svg)](https://www.npmjs.org/package/acorn-globals)

## Installation

    npm install acorn-globals

## Usage

detect.js

```js
var fs = require('fs');
var detect = require('acorn-globals');

var src = fs.readFileSync(__dirname + '/input.js', 'utf8');

var scope = detect(src);
console.dir(scope);
```

input.js

```js
var x = 5;
var y = 3, z = 2;

w.foo();
w = 2;

RAWR=444;
RAWR.foo();

BLARG=3;

foo(function () {
    var BAR = 3;
    process.nextTick(function (ZZZZZZZZZZZZ) {
        console.log('beep boop');
        var xyz = 4;
        x += 10;
        x.zzzzzz;
        ZZZ=6;
    });
    function doom () {
    }
    ZZZ.foo();

});

console.log(xyz);
```

output:

```
$ node example/detect.js
[ { name: 'BLARG', nodes: [ [Object] ] },
  { name: 'RAWR', nodes: [ [Object], [Object] ] },
  { name: 'ZZZ', nodes: [ [Object], [Object] ] },
  { name: 'console', nodes: [ [Object], [Object] ] },
  { name: 'foo', nodes: [ [Object] ] },
  { name: 'process', nodes: [ [Object] ] },
  { name: 'w', nodes: [ [Object], [Object] ] },
  { name: 'xyz', nodes: [ [Object] ] } ]
```

## Security contact information

To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure.

## License

  MIT
npm package: @szlx/custom-modal
Description: > 主要处理问题统一确认按钮的位置在右边
Author: iamgx
Latest version: 1.0.4

# 封装 uni.showModal

> 主要处理问题统一确认按钮的位置在右边

#### Installtion

```bash
npm i @szlx/custom-modal
```

#### Usage

```js
// main.js
import Vue from 'vue'
import CustomModal from '@szlx/custom-modal'
Vue.use(CustomModal)

// xxx.vue调用
this.$confirm({})

// js 中调用
import { showModal } from '@szlx/custom-modal'
showModal({})
```

#### Install Options

| 参数名             | 说明             | 类型   | 必填  | 默认值   |
| ------------------ | ---------------- | ------ | ----- | -------- |
| name               | 原型名称         | string | false | $confirm |
| defaultTitle       | 默认标题         | string | false | 提示     |
| defaultConfirmText | 默认确认按钮问题 | string | false | 确认     |
| defaultCancelText  | 默认取消按钮问题 | string | false | 取消     |

#### showModal Custom Props
| 参数名   | 说明     | 类型     | 必填  | 默认值 |
| -------- | -------- | -------- | ----- | ------ |
| onOk     | 确认回调 | function | false | -      |
| onCancel | 取消回调 | function | false | -      |