https://github.com/afeiship/next-to-dingtalk-url
Wrap url in dingtalk.
https://github.com/afeiship/next-to-dingtalk-url
ding dingtalk next open url
Last synced: about 1 month ago
JSON representation
Wrap url in dingtalk.
- Host: GitHub
- URL: https://github.com/afeiship/next-to-dingtalk-url
- Owner: afeiship
- License: mit
- Created: 2020-07-23T09:32:18.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-20T09:50:03.000Z (over 5 years ago)
- Last Synced: 2025-09-18T01:42:45.116Z (9 months ago)
- Topics: ding, dingtalk, next, open, url
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-to-dingtalk-url
> Wrap url in dingtalk.
[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]
## installation
```bash
npm install -S @jswork/next-to-dingtalk-url
```
## usage
```js
import '@jswork/next-to-dingtalk-url';
const url = 'https://www.mipengine.org/';
const dingUrl = nx.toDingtalkUrl(url);
console.log(dingUrl);
// dingtalk://dingtalkclient/page/link?pc_slide=true&url=https%3A%2F%2Fwww.mipengine.org%2F
```
## license
Code released under [the MIT license](https://github.com/afeiship/next-to-dingtalk-url/blob/master/LICENSE.txt).
[version-image]: https://img.shields.io/npm/v/@jswork/next-to-dingtalk-url
[version-url]: https://npmjs.org/package/@jswork/next-to-dingtalk-url
[license-image]: https://img.shields.io/npm/l/@jswork/next-to-dingtalk-url
[license-url]: https://github.com/afeiship/next-to-dingtalk-url/blob/master/LICENSE.txt
[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-to-dingtalk-url
[size-url]: https://github.com/afeiship/next-to-dingtalk-url/blob/master/dist/next-to-dingtalk-url.min.js
[download-image]: https://img.shields.io/npm/dm/@jswork/next-to-dingtalk-url
[download-url]: https://www.npmjs.com/package/@jswork/next-to-dingtalk-url