Skip to content

jerry2359/test-a-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是一个用webpack构建的测试模块模板。可以使用es6编写,最终支持es5和es6的两种引入方式

# install
npm i -D test-a-module
import {TestModule, HandleData} from 'test-a-module'

const tm = new TestModule({ name: 'testExample' })
tm.say()

const hd = new HandleData()
hd.save({ name: '张三', age: 26 })
console.log(hd.get('name'))

About

用webpack编写npm模块的模板

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published