a simple, concise description of what it does. link to demo
npm install -S <your project name>
- node 10.8.0
-
by es6 import
import Animal from 'js-toolkit'; const cat = new Animal({ name: 'cat' }); cat.say('miao miao');
-
by html
<html> <body> <!-- todo something --> <script type="text/javascript" src="/index.js"></script></body> <script> (function() { var cat = new Animal({ name: 'cat' }) cat.say('miao miao') })(); </script> </body> </html>
Create a new animal
instance
options
attribute | type | description |
---|---|---|
name | string | name of animal |
methods
method | returns | description |
---|---|---|
say(<string>msg ) |
none | will print <name> say <msg> |
npm start
- web server will open http://localhost:3000
npm run build
- todo feature 1
- todo feature 2
- todo feature 3