Comments (5)
Ah. That makes sense. This is a Node.js library, not a browser library. It has utilities for reading files off the filesystem which we couldn't do in the browser (unless we did some really cool ByteArray drag-n-drop stuff). You can attempt to use Node.js polyfills, but I don't know if that is going to be worthwhile.
from node-aescrypt.
Thanks for your response.
But i'm trying to decrypt an ebook within the app and it doesn't use browser as the encrypted file is already downloaded locally into the device data directory, which is suppose to decrypt it locally. Can you advice as to what to do to resolve this issue
Thanks
from node-aescrypt.
The major issue now is:
Error: Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Downloads\foyeGab\node_modules\node-aescrypt\build\module\lib'
Error: Module not found: Error: Can't resolve 'fs' in 'C:\Users\USER\Downloads\foyeGab\src\app\home'
from node-aescrypt.
Unfortunately, Ionic (or more precisely Cordova) is not a Node.js runtime. It uses an abstraction to mount client-side code using web views. You can see some Native functionality (for example, file system access) through custom abstractions, but you still don't have all the Node.js libraries like fs
and Buffer
. You can certainly try to port the logic, but it is pretty tightly coupled to Node.js's buffer and stream system.
from node-aescrypt.
Point gotten
thank you
from node-aescrypt.
Related Issues (4)
- How to ? HOT 2
- Thank you for making this! HOT 1
- Prototype Polution HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-aescrypt.