Song-Ex SDK - Hello World
npm install @songexapp/sdkSong-Ex SDK – works in JavaScript (CommonJS), ES6 (ESM), and TypeScript projects.
``bash`
npm install @songexapp/sdk
`javascript
const { hello, greet } = require("@songexapp/sdk");
console.log(hello()); // "Hello from @songexapp/sdk!"
console.log(greet("World")); // "Hello, World!"
`
`javascript
import { hello, greet } from "@songexapp/sdk";
console.log(hello()); // "Hello from @songexapp/sdk!"
console.log(greet("World")); // "Hello, World!"
`
`typescript
import { hello, greet } from "@songexapp/sdk";
const msg: string = hello();
console.log(msg);
console.log(greet("TypeScript"));
`
`bash`
npm install
npm run build
npm run watch # watch mode for development
To test the SDK locally before publishing:
`bash1. Build and register the SDK globally
npm run build
npm link
See examples/hello-world/README.md for more options (direct path link, npm pack).
MIT