wisdomtreetest
v1.0.3
Published
An isomorphic helper that fetches https://baidu.com and prints the response.
Maintainers
Readme
wisdomtreetest
A minimal npm package that exposes a single hello() function which prints hello to the console.
Installation
npm install wisdomtreetestUsage
CommonJS:
const hello = require('wisdomtreetest');
hello(); // prints "hello"ES Module / TypeScript:
import hello from 'wisdomtreetest';
hello(); // prints "hello"Named import is also supported:
const { hello } = require('wisdomtreetest');
hello();API
hello(): string
Prints hello to stdout and returns the string "hello".
npm Lifecycle Scripts
This package is configured with the full set of npm lifecycle scripts (preinstall, install, postinstall, preuninstall, uninstall, postuninstall, preversion, version, postversion, prepare, prepublishOnly, prepack, postpack, publish, postpublish, prestart/start/poststart, pretest/test/posttest, prestop/stop/poststop, prerestart/restart/postrestart). See package.json for details.
Publish
npm login
npm publish --access public