{"_id":"@akhilmekkatt/sp-upload","_rev":"1-c1ae14cd661df64fafd302d1c778262e","name":"@akhilmekkatt/sp-upload","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@akhilmekkatt/sp-upload","version":"1.0.0","description":"The SharePoint File Upload Module is a Node.js library designed to streamline the process of uploading files to SharePoint document libraries. This module offers a simple and reusable solution for integrating file upload functionality into Node.js applica","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node index.js"},"author":{"name":"akhil mekkatt"},"license":"ISC","dependencies":{"axios":"^1.6.2","fs":"^0.0.1-security","node-sp-auth":"^3.0.7","path":"^0.12.7"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/akhilmekkatt/sp-upload.git"},"bugs":{"url":"https://github.com/akhilmekkatt/sp-upload/issues"},"homepage":"https://github.com/akhilmekkatt/sp-upload#readme","gitHead":"69777bfa97aba57bf3f8b294ca7e39d04e2d5954","_id":"@akhilmekkatt/sp-upload@1.0.0","_nodeVersion":"16.13.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-XlCJsbbIhgWKCBenoqseCvOz7ymnIy8PmdUREByKhIU3IyyvogcyQ+IV1anA//t5ziy+VeX5b3DU3c63PSSyag==","shasum":"14aa16df135fc91807b4a13197feedc1557a23f9","tarball":"https://registry.npmjs.org/@akhilmekkatt/sp-upload/-/sp-upload-1.0.0.tgz","fileCount":3,"unpackedSize":4630,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBgMUTCwrvIVJHVkiocxSyPyvuJLnjH5Wb5tzouqDt1CAiA98O3lUHaWVfzay0u5aFyxRil12/m63e7Q9qHIxaqWww=="}]},"_npmUser":{"name":"akhilmekkatt","email":"akhilmekkatt@gmail.com"},"directories":{},"maintainers":[{"name":"akhilmekkatt","email":"akhilmekkatt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sp-upload_1.0.0_1700659688733_0.713117854095074"},"_hasShrinkwrap":false},"1.0.1":{"name":"@akhilmekkatt/sp-upload","version":"1.0.1","description":"The SharePoint File Upload Module is a Node.js library designed to streamline the process of uploading files to SharePoint document libraries. This module offers a simple and reusable solution for integrating file upload functionality into Node.js applica","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1","start":"node index.js"},"author":{"name":"akhil mekkatt"},"license":"ISC","dependencies":{"axios":"^1.6.2","fs":"^0.0.1-security","node-sp-auth":"^3.0.7","path":"^0.12.7"},"devDependencies":{},"repository":{"type":"git","url":"git+https://github.com/akhilmekkatt/sp-upload.git"},"bugs":{"url":"https://github.com/akhilmekkatt/sp-upload/issues"},"homepage":"https://github.com/akhilmekkatt/sp-upload#readme","keywords":["sharepoint","file","upload","file","node","file","upload"],"gitHead":"fde998c8cff355f488392798378fc6b153dd7d4e","_id":"@akhilmekkatt/sp-upload@1.0.1","_nodeVersion":"16.13.2","_npmVersion":"9.1.3","dist":{"integrity":"sha512-TkrG42mjQiUHzGsZ/lC+4cYdz3NQEKovUHxlLKpd618VKHUikF7IlHNNxPCPgmfhC1wdd5A1Cww5IHwiiWhWcQ==","shasum":"ced5ef41be693b5dfd0396626dd273a8bfd0a213","tarball":"https://registry.npmjs.org/@akhilmekkatt/sp-upload/-/sp-upload-1.0.1.tgz","fileCount":3,"unpackedSize":4746,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGFMma0dXnOGBs25OdSYv52F5z65IIUaB8q4o1IlUsvIAiAjyzqwJrkcP7ciTwuxfaVsZyJDCc1dX54NxEl+7QbHKA=="}]},"_npmUser":{"name":"akhilmekkatt","email":"akhilmekkatt@gmail.com"},"directories":{},"maintainers":[{"name":"akhilmekkatt","email":"akhilmekkatt@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/sp-upload_1.0.1_1700660340835_0.4264514171624423"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-22T13:28:08.642Z","1.0.0":"2023-11-22T13:28:08.897Z","modified":"2023-11-22T13:39:01.206Z","1.0.1":"2023-11-22T13:39:01.014Z"},"maintainers":[{"name":"akhilmekkatt","email":"akhilmekkatt@gmail.com"}],"description":"The SharePoint File Upload Module is a Node.js library designed to streamline the process of uploading files to SharePoint document libraries. This module offers a simple and reusable solution for integrating file upload functionality into Node.js applica","homepage":"https://github.com/akhilmekkatt/sp-upload#readme","repository":{"type":"git","url":"git+https://github.com/akhilmekkatt/sp-upload.git"},"author":{"name":"akhil mekkatt"},"bugs":{"url":"https://github.com/akhilmekkatt/sp-upload/issues"},"license":"ISC","readme":"# Description:\r\n\r\nThe SharePoint File Upload Module is a Node.js library designed to streamline the process of uploading files to SharePoint document libraries. This module offers a simple and reusable solution for integrating file upload functionality into Node.js applications targeting SharePoint environments.\r\n\r\n## Key Features:\r\n\r\n- Simplified Integration: Easily incorporate file upload capabilities into Node.js projects interacting with SharePoint.\r\n- Flexible Configuration: Customizable settings for SharePoint site URL, library name, and access token.\r\n- Error Handling: Robust error handling to ensure smooth operation and clear feedback on upload failures.\r\n- Encapsulation: Class-based structure encapsulates SharePoint file upload functionality for reusability and maintainability.\r\n- Dependencies: Utilizes Axios for HTTP requests and fs module for file operations.\r\n\r\n```\r\nconst SharePointFileUploader = require('sp-upload');\r\n\r\n// SharePoint credentials and details\r\nconst username = 'your_username';\r\nconst password = 'your_password';\r\nconst siteUrl = 'https://your-sharepoint-site.com';\r\nconst libraryName = 'YourLibraryName';\r\n\r\n// Create an instance of the uploader\r\nconst uploader = new SharePointFileUploader(username, password, siteUrl, libraryName);\r\n\r\n// Array of file details (file paths and names)\r\nconst files = [\r\n    { filePath: '/path/to/your/file1.txt', fileName: 'file1.txt' },\r\n    { filePath: '/path/to/your/file2.txt', fileName: 'file2.txt' },\r\n    // Add more files as needed\r\n];\r\n\r\n// Example usage: Upload multiple files\r\nuploader.uploadFiles(files)\r\n    .then(() => {\r\n        console.log('Files uploaded successfully');\r\n    })\r\n    .catch((error) => {\r\n        console.error('Upload failed:', error);\r\n    });\r\n\r\n\r\n```\r\n\r\nContributing: Contributions are welcome! Feel free to fork the repository, make enhancements, and submit pull requests.\r\n\r\nLicense: This project is licensed under the MIT License.\r\n\r\nIssues: Report any issues or suggestions by creating an issue.\r\n","readmeFilename":"README.md","keywords":["sharepoint","file","upload","file","node","file","upload"]}