skpy-notify
v1.0.1
Published
Send notify to skype
Readme
Table of contents
What is npm? (Node Package Manager)
1. Main features:
- Module management: Create libraries as a module and store them in registry.
- Versioning: Define specific version to apply them to your project.
- Dependency Management: Automatically installs and manages package dependencies, handling nested dependencies for seamless integration.
2. Pros and cons:
- Pros:
- Easy to find then install dependencies
- Shared libraries and reusable libraries
- Multiple frameworks
- Easy to maintain dependencies with automatic updates
- Cons:
- Potential for dependency bloat and large node_modules folders
- Security risks if not carefully managing versions and updates
- Version conflicts may arise with deeply nested dependencies
3. Usecase:
- Share code multiple projects: Dont need commit full library when copy code, it's just installing dependencies at node_modules by run command line - keep time.
- Centralize dependencies: Need centralized dependency - keep it uptodate and maintanable.
4: These dependencies can be seen as different levels:
"dependencies on tools" level, where one would list all the programming languages and libraries needed for building code.
"dependency on individual modules" level, which lists out every module referenced by another module in use; or even at lower levels like listing all source file dependencies
5. Different ways to create an npm package
- Yeoman is a Node.js-based open source project and may be used as an alternative to Grunt or Gulp in the frontend world.
- Using Webpack and Babel: Webpack is a great way to compile your JavaScript and CSS files into one single bundle
Implementation with on-premises registry
How maintain library dependencies?
Usage:
The step-by-step overview to create an npm package and distribute it:
- Decide on package name and confirm that it is unique in public npm registry
- Install Node.js (and npm)
- Create a directory for your npm package and work from within it
- Run
npm initto create 'package.json' - Add package dependencies (if any) to 'package.json'
- Add your Javascript code
- Run
npm loginto login to npm registry (create an account if you don't have one) - Run
npm publishto share your package with the world - Configure
npmto publish to a private repository (if desired)
Implement:
npm init
npm install typescript
npx txc --init
npm publishUsage:
const skpyNotify = new SkpyNotify('127.0.0.38:9491')
skpyNotify.sendBot('Test message');