Skip to content

NPM Package to determine if given number is an Armstrong Number

Notifications You must be signed in to change notification settings

vallme2003/armstrongnumber

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

armstrongnumber NPM version NPM monthly downloads NPM total downloads Linux Build Status

Returns true if the given number is an armstrong number, and is an integer that does not exceed the JavaScript MAXIMUM_SAFE_INTEGER.

Please consider following this project's author, Valliappan Thenappan, and consider starring the project to show your ❤️ and support.

Install

Install with npm:

$ npm install --save armstrongnumber

Usage

Works with numbers.

const isArmStrongNumber = require('armstrongnumber');

console.log(isArmStrongNumber(153)); //=> true
console.log(isArmStrongNumber(1)); //=> true

console.log(isArmStrongNumber(2)); //=> false
console.log(isArmStrongNumber(1534)); //=> false

About

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue.

Building docs

(This project's readme.md is generated by verb, please don't edit the readme directly. Any changes to the readme must be made in the .verb.md readme template.)

To generate the readme, run the following command:

$ npm install -g verbose/verb#dev verb-generate-readme && verb

Contributors

Commits Contributor
3 vallme2003

Author

Valliappan Thenappan

License

Copyright © 2020, Valliappan Thenappan. Released under the ISC License.


This file was generated by verb-generate-readme, v0.6.0, on Jun 21, 2020.

About

NPM Package to determine if given number is an Armstrong Number

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published