1.1.1 • Published 4 years ago
@infuse/pocketknife v1.1.1
Pocketknife
(Public NPM package)
######A library for sharing various tools used in our node projects
Installation
npm install --save @infuse/pocketknife
Requirements
- node.js >= v8.10
- npm >= v6.4
Development
- Add new modules to the src folder
- Add any package dependencies through package.json
- Export the module through the ~/index.js file
Running Locally
- Navigate to project root
- run
npm link
(will build a symlink to@infuse/pocketknife
) - Navigate to root of project that requires pocketknife
- run
npm link @infuse/pocketknife
- Verify that updated pocketknife has been inserted into project's node_modules
Publishing
- Bump up the package.json version using semver rules (https://semver.org/)
- Run
npm publish --access public
TODO
- Add tests
- Add linting
- Add CI/publishing on every merge to master
Modules
Emailer
- Description - Module facilitating the sending of emails
- Methods - sendEmail
- ENV Variables - MAILER_ADDRESS: server host - MAILER_USER: server user - MAILER_PASSWORD: server password - MAILER_SENDER: sender email address - EMAILS: recipient email addresses
Logger
- Description - Module facilitating console and logentries logging
- Methods - logInfo - logError
- ENV Variables - LOGENTRIES_TOKEN: api key mapping to logentries project - LOGENTRIES_REGION (optional): region where logentries project was set up (defaults to eu)
S3
- Description - Module facilitating s3 access/object retrieval
- Methods - getObjectFromS3 - getFileAndDirectoryFromKey
SFTP
- Description - Module facilitating file upload to SFTP servers
- Methods - uploadFileOnSftpServer
1.2.0-alpha.1
4 years ago
1.1.1
4 years ago
1.1.1-alpha.11
4 years ago
1.1.1-alpha.10
4 years ago
1.1.1-alpha.9
4 years ago
1.1.1-alpha.8
4 years ago
1.1.1-alpha.6
4 years ago
1.1.1-alpha.7
4 years ago
1.1.1-alpha.5
4 years ago
1.1.1-alpha.4
4 years ago
1.1.1-alpha.2
4 years ago
1.1.1-alpha.3
4 years ago
1.1.1-alpha.1
4 years ago
1.1.0
4 years ago
1.0.13
5 years ago
1.0.12
5 years ago
1.0.11
5 years ago
1.0.10
5 years ago
1.0.9
5 years ago
1.0.8
5 years ago
1.0.7
5 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.3
5 years ago
1.0.2
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago