Comments (3)
Hi Paul. There is currently no n_4
command. Not until lodash v5 is out. The n_3
command starts the REPL with lodash v3 included, which doesn’t have the toInteger
method. Have you tried using the command n_
(need to ask because I do not see it above)?
Here is my output:
$ npm i -g n_
npm WARN deprecated [email protected]: ⚠️ WARNING ⚠️ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
/usr/local/bin/n_ -> /usr/local/lib/node_modules/n_/bin/n_
/usr/local/bin/n_3 -> /usr/local/lib/node_modules/n_/bin/n_3
> [email protected] postinstall /usr/local/lib/node_modules/n_
> npm pack lodash@^3 && targz extract lodash-3.*.tgz extraneous/lodash3
lodash-3.10.1.tgz
+ [email protected]
added 26 packages in 11.852s
$ n_
n_ > _.toInteger('123')
123
n_ >
from n_.
@borisdiakur thanks for taking the time to reply - I must've done something wrong previously or been in a bad state, I uninstalled, reinstalled and the command worked fine! user error. Sorry for opening the issue.
Thanks so much for your time and the great library!
from n_.
No problem, you’re welcome!
from n_.
Related Issues (18)
- Problem with `_` HOT 13
- Add a nice animated gif to the README.md so that anyone sees immediately what n_ is made for HOT 1
- Would love to know how to make something like this for babel-node HOT 2
- Possibility to redirect the special variable `$` elsewhere so we could use it for our own needs? HOT 1
- Upgrade to lodash 4.0 HOT 2
- REPL history. HOT 4
- The special variable $ no longer works in Node 6 HOT 1
- Allow custom lodash version HOT 12
- n_ breaks npm ls -g HOT 1
- Add note about `_` redirect to `$` in readme.
- Deprecation Warning HOT 2
- npm install does not work HOT 5
- Error using rli prop
- Running on NodeJs v20 locally, interactive session not working HOT 2
- Add unit tests. HOT 1
- `.clear` loses lodash binding
- Multi-line commands break lodash binding 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 n_.