Skip to content

Package that allows users to access Devil Fruit objects that contain relevant information

Notifications You must be signed in to change notification settings

conorkenn/DevilFruits

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Devil Fruits Package

NPM module that contains data related to One Piece Devil fruits, currently stores data on all the canon devil fruits

    {
        id: 89,
        name: 'Tori Tori no Mi, Model: Phoenix',
        eng_name: 'Bird-Bird Fruit Model: Phoenix',
        type: 'Mythical Zoan',
        current_user: 'Marco'
    },

Usage/Examples

General use case
Install devil-fruits with npm

  npm install devil-fruits
import { GetAllFruits } from 'devil-fruits';

const fruits = GetAllFruits().map((fruit) =>{
  return(
    <Card {...fruit} />
  );
});

function App() {
  return (
    <CardGrid>
      {fruits}
    </CardGrid>
    );
}

export default App;

Contains different Getter functions to get all fruits or based on type

  • GetAllFruits()
  • GetAllParamecia()
  • GetAllZoans()
  • GetAllMythicalZoans()
  • GetAllAncientZoans()
  • GetAllLogias()
  • Also a search function SearchUsers(name)

Todo

  • Add images
  • Add more info about devil fruits
  • Create demo project using devil-fruits

About

Package that allows users to access Devil Fruit objects that contain relevant information

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published