negate-number
v1.1.1
Published
Makes a number negative
Downloads
2
Maintainers
Readme
Simple tool for creating negative numbers
Usage
First, you have to install it
npm install --save negate-number
Then, you can use it in any of your projects
const doIt = require('negate-number')
const i = 4 // set to a random number
doIt(i) // returns -4
Compatibility
~sanity
License
negate-number is distributed "as is" under the WTFPL license.
Special thanks to /u/kukiric for the idea that prompted the development of this package.
Disclaimer
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Additionally, no warranty of any kind shall apply to the lack of purpose either.