/next-to-dingtalk-url

Wrap url in dingtalk.

Primary LanguageJavaScriptMIT LicenseMIT

next-to-dingtalk-url

Wrap url in dingtalk.

version license size download

installation

npm install -S @jswork/next-to-dingtalk-url

usage

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.