open-index/open-npm huggingface dataset:
npm package: @sdk185/my-vue-sdk
Description: A Vue.js component SDK
Latest version: 1.0.2

# @sdk185/my-vue-sdk

一个 Vue.js 组件 SDK，包含常用表单组件。

## 安装

```bash
npm install @sdk185/my-vue-sdk --save
```

## 使用

### 完整引入

```javascript
import Vue from 'vue'
import MyVueSdk from '@sdk185/my-vue-sdk'

Vue.use(MyVueSdk)
```

### 按需引入

```javascript
import { HelloWorld } from '@sdk185/my-vue-sdk'

export default {
  components: {
    HelloWorld
  }
}
```

## 组件

### HelloWorld

一个简单的表单提交组件。

#### 示例

```html
<hello-world></hello-world>
```

## 开发

```bash
# 安装依赖
npm install

# 构建生产版本
npm run build
```

## 发布

```bash
# 登录 npm
npm login

# 构建
npm run build

# 发布
npm publish --access public
```

## 许可证

MIT
npm package: @sdk185/sip-phone-sdk
Description: ``` npm install ```
Author: Your Name
Latest version: 1.6.4

# sip-phone

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sdk185/sip-phone-sdk26
Description: ``` npm install ```
Author: Your Name
Latest version: 0.2.33

# sip-phone

## Project setup
```
npm install
```

### Compiles and hot-reloads for development
```
npm run serve
```

### Compiles and minifies for production
```
npm run build
```

### Lints and fixes files
```
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
npm package: @sdk_cy/body-parser
Description: A simple parser middleware to parse JSON or urlencoded body data for express or @sdk_cy/tiny-server
Author: Sıdıka Çay
Latest version: 1.0.0

# @sdk_cy/body-parser

 @sdk_cy/body-parser is a body parser middleware which it can be used with [express](https://www.npmjs.com/package/express) or
  [@sdk_cy/tiny-server](https://www.npmjs.com/package/@sdk_cy/tiny-server)
 It can parse json or x-www-form-urlencoded data from your request.
## Installation

Use the package manager [npm](https://www.npmjs.com/) to install body-parser.

```bash
npm install @sdk_cy/body-parser
```

## Usage

```javascript
const tiny = require("@sdk_cy/tiny-server"); //You can use express
const bodyParser = require("@sdk_cy/body-parser");
const port = 8000;
const app = tiny();

app.use(bodyParser);

app.post("/", (req, res) => {
    //This endpoint now accept json or x-www-form-urlencoded
    res.setHeader("Content-Type","application/json");
    return res.status(200).send(JSON.stringify(req.body));
});

app.listen(port, (err) => {
    if (err) {
        return console.log('Error: ', err)
    }
    console.log("Server is listening on ", port)
});
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @sdk_cy/tiny-server
Description: Lightweight and tiny http server
Author: Sıdıka Çay
Latest version: 1.2.1

# @sdk_cy/tiny-server

 @sdk_cy/tiny-server is capable of creation server, performing different actions(just C.R.U.D.) based on different HTTP request and URL.
## Installation

Use the package manager [npm](https://www.npmjs.com/) to install tiny-server.

```bash
npm install @sdk_cy/tiny-server
```

## Usage

```javascript
const tiny = require("@sdk_cy/tiny-server");
const port = 8000;
const app = tiny();

app.get("/testGet", (req, res) => {
    res.setHeaders({"Content-Type": "text/html", "X-Authorization": "Bearer " + "key"});
    res.status(200).send("Get request successful");
});

app.get("/testGetParam", function (req, res) {
    const params = req.params;
    const id = params.id;
    return res.status(200).send(id);
});

app.post("/testPost", function (req, res) {
    let body = [];
    req.on("data", (chunk) => {
        body.push(chunk);
    }).on("end", () => {
        body = Buffer.concat(body).toString();
        return res.status(200).send(body);
    });
});

app.put("/testPut", function (req, res) {
    let body = [];
    req.on("data", (chunk) => {
        body.push(chunk);
    }).on("end", () => {
        body = Buffer.concat(body).toString();
        return res.status(200).send(body);
    });
});

app.delete("/testDelete", function (req, res) {
    const params = req.params;
    return res.status(200).send(params.id);
});

app.listen(port, (err) => {
    if (err) {
        return console.log('Error: ', err)
    }
    console.log("Server is listening on ", port)
});
```

## Middleware usage

```javascript
const tiny = require("@sdk_cy/tiny-server");
const bodyParser = require('body-parser');

const port = 8000;
const app = tiny();
app.use(bodyParser.json());

app.post("/testPost", function (req, res) {
    return res.status(200).send(JSON.stringify(req.body));
});

app.listen(port, (err) => {
    if (err) {
        return console.log('Error: ', err)
    }
    console.log("Server is listening on ", port)
});
```

## Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

## License
[MIT](https://choosealicense.com/licenses/mit/)
npm package: @sdkd/sdkd-aws-ses
Description: This module is used to send emails using AWS SES.
Latest version: 0.0.2

# SDKD Aws Ses

This module is used to send emails using AWS SES.  

Check out the github repo for docs and more info on how to use this library: https://github.com/glitch003/react-native-distributed-dev-kit

You will need to obtain an API key which can be done by signing up [here](https://app.sdkd.co)

Note that this module depends on https://github.com/mvayngrib/react-native-crypto so you should follow those installation instructions as well.

To send an email:

```js
// create the sender and pass in a config with credentials and optional debug flag
let sender = new SDKDAwsSes({
  credentials: {
    accessKeyId: 'a_key_id',
    secretAccessKey: 'a_secret_key',
    sessionToken: 'a_session_token' // this is optional
  },
  debug: false
})

let to = 'test@example.com'
let fromAddr = 'test@example.com'
let subject = 'This is a test'

// only plaintext body is supported right now
let body = 'This is the body of a test'

// attachments should be an array of base64 data urls
let attachments = [
  'data:image/png;base64,fVkVvYassFAAAABQAAAAIAAAAbWltZXR5cG=='
]

// send the message
sender.sendMessage(to, fromAddr, subject, body, attachments)
.then(response => {
  this._debugLog('email sent with response: ' + response)
})
```
npm package: @sdkd/sdkd-aws-signer
Description: This module is used to sign requests destined for AWS using their Signature V4 format.
Latest version: 0.0.2

# SDKD Aws Signer

This module is used to sign requests destined for AWS using their Signature V4 format.

Check out the github repo for docs and more info on how to use this library: https://github.com/glitch003/react-native-distributed-dev-kit

You will need to obtain an API key which can be done by signing up [here](https://app.sdkd.co)

Note that this module depends on https://github.com/mvayngrib/react-native-crypto so you should follow those installation instructions as well.

To sign a request:

```js
// define a config that includes your region, and the service you're using.  
// in this example we're using AWS SES to send an email so service is "email"
// assume we have access key id, secret token, and session token in "credentials" object
// note that session token is optional
let config = {
  region: 'us-east-1',
  service: 'email',
  accessKeyId: credentials.access_key_id,
  secretAccessKey: credentials.secret_access_key,
  sessionToken: credentials.session_token
}

// take the post body and convert it into a query string per AWS SES docs
let postBodyObj = {
  'Action': 'SendRawEmail',
  'Source': 'recovery@sdkd.co',
  'Destinations.member.1': to,
  'RawMessage.Data': base64Body
}
let postBody = Object.keys(postBodyObj)
.map(k => k + '=' + encodeURIComponent(postBodyObj[k]))
.join('&')

// create the signer 
let signer = new SDKDAwsSigner(config)

// Sign the request
var request = {
  method: 'POST',
  url: 'https://email.us-east-1.amazonaws.com',
  body: postBody
}
var signed = signer.sign(request)

// the "signed" variable now contains all the headers you need including the AWS security signature header.  You could use the "fetch" command below to send an email using SES, for example.
fetch('https://email.us-east-1.amazonaws.com', {
  method: 'POST',
  headers: signed,
  body: postBody
})
.then(response => this._debugLog(response))
.catch(err => { throw new Error(err) })
```
npm package: @sdkd/sdkd-ssss
Description: This module can split a secret into n-of-m parts.  Learn more here: https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing
Latest version: 0.0.2

# SDKD Shamir's Secret Sharing Module

This module can split a secret into n-of-m parts.  Learn more here: https://en.wikipedia.org/wiki/Shamir%27s_Secret_Sharing

Check out the github repo for docs and more info on how to use this library: https://github.com/glitch003/react-native-distributed-dev-kit

You will need to obtain an API key which can be done by signing up [here](https://app.sdkd.co)

Note that this module depends on https://github.com/mvayngrib/react-native-crypto so you should follow those installation instructions as well.

To split into 4 parts with 2 required to recover the secret:

```js
let secret = 'd94527908e99bcff99bf7106f16d2490cf60e692'
let s = new SDKDSSSS()
let shares = s.share(secret, 4, 2)
console.log(shares)
// console output: 
[ '801e67cef502048d33b350e37d98827b9651ba6491b9c',
  '802d28e0cc9ed1f0daf76aab23c0740d8a69b1d32018e',
  '803352ba6be5dd94728bc3d3a9489960ce710741bfc80',
  '804ba77d7e66ab1ac9af0ffa5eb048e1a3d8676c435aa' ]
```


To combine:

```js
let shares = [
  '802d28e0cc9ed1f0daf76aab23c0740d8a69b1d32018e',
  '803352ba6be5dd94728bc3d3a9489960ce710741bfc80'
]
let s = new SDKDSSSS()
let combined = s.combineShares(shares)
console.log(combined)
// console output:
d94527908e99bcff99bf7106f16d2490cf60e692
```