1.0.2 • Published 3 years ago
@marty_/log-string v1.0.2
Workflow 2 M3 Lesson Task - Create an NPM package that console logs your name (or any other string) when installed, imported and called.
Log string
to install run:
npm install log-string
And then in a script file, import and call logString like this:
import logString from "log-string";
logString("some string");
*Note: You will need to use a bundler like Parcel or Webpack to import the package like this.