socket-lib1

create npm package with typescript

Usage no npm install needed!

<script type="module">
  import socketLib1 from 'https://cdn.skypack.dev/socket-lib1';
</script>

README

ts-hi

Build Status Coverage Status

Install

npm install ts-hi
yarn add ts-hi

Usage

Typescript

import { add } from 'ts-hi';

console.log(add(1, 2));

javascript

import add = require('ts-hi).add;

console.log(add(1, 2));

Test

npm run test

修改 npm config set registry http://registry.npm.taobao.org/ 还原 npm config set registry https://registry.npmjs.org/

发布 npm run release "@yunshanzhu/ihotel-client tsc && npm publish